lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extending event-listener.ly to include a (numerical) voice id


From: Maurits Lamers
Subject: Re: extending event-listener.ly to include a (numerical) voice id
Date: Sat, 21 Oct 2017 13:15:08 +0200

>> But those values are not retrievable through (ly:context-id context), are 
>> they? 
> 
> They are.  LilyPond just does the equivalent of
> << \context Voice = "1" ...
>   \context Voice = "2" ...
>   \context Voice = "3"
>>> 
> 
> But this is just ad-hoc for a << \\ \\ >> construct.

So, if I understand this correctly, the following 

\new Voice { 

}

leaves the context-id empty.
 As I have to track them anyhow, I used the (make-object-property) technique to 
track the voice even in that case (as well as the parent staff)

Follow up question:
I also want to track lyrics. I already capture the lyric-event and 
hyphen-event. Is is possible to find the associated voice through the event?
I tried to read the associatedVoice property, but that seems to be empty.

thanks in advance!

cheers

Maurits




reply via email to

[Prev in Thread] Current Thread [Next in Thread]