[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: extending event-listener.ly to include a (numerical) voice id
From: |
David Kastrup |
Subject: |
Re: extending event-listener.ly to include a (numerical) voice id |
Date: |
Sat, 21 Oct 2017 13:37:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Maurits Lamers <address@hidden> writes:
>>> 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.
Yes. Implicitly created contexts get something like "\\new" I think.
> 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?
Not that I know of.
> I tried to read the associatedVoice property, but that seems to be
> empty.
Try the context property associatedVoiceContext . I think it gets set
by the iterator resposible for \lyricsto et al, just don't know when.
--
David Kastrup
- extending event-listener.ly to include a (numerical) voice id, Maurits Lamers, 2017/10/20
- Re: extending event-listener.ly to include a (numerical) voice id, David Kastrup, 2017/10/20
- Re: extending event-listener.ly to include a (numerical) voice id, Maurits Lamers, 2017/10/20
- Re: extending event-listener.ly to include a (numerical) voice id, David Kastrup, 2017/10/20
- Re: extending event-listener.ly to include a (numerical) voice id, Maurits Lamers, 2017/10/21
- Re: extending event-listener.ly to include a (numerical) voice id,
David Kastrup <=
- Re: extending event-listener.ly to include a (numerical) voice id, Maurits Lamers, 2017/10/21
- Multi-byte characters in Lyrics, Maurits Lamers, 2017/10/26
- Re: Multi-byte characters in Lyrics, Thomas Morley, 2017/10/26
- Re: Multi-byte characters in Lyrics, Maurits Lamers, 2017/10/26
- Re: Multi-byte characters in Lyrics, Henning Hraban Ramm, 2017/10/26
- Re: Multi-byte characters in Lyrics, David Kastrup, 2017/10/26
- Re: Multi-byte characters in Lyrics, Maurits Lamers, 2017/10/26
- Re: Multi-byte characters in Lyrics, David Kastrup, 2017/10/27
- Re: Multi-byte characters in Lyrics, Maurits Lamers, 2017/10/27
- Re: Multi-byte characters in Lyrics, David Kastrup, 2017/10/27