[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: |
Fri, 20 Oct 2017 21:48:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Maurits Lamers <address@hidden> writes:
>> Op 20 okt. 2017, om 18:32 heeft David Kastrup <address@hidden> het
>> volgende geschreven:
>>
>> Maurits Lamers <address@hidden <mailto:address@hidden>> writes:
>>
>>> I can retrieve the retrieve that name through (ly:context-id
>>> (ly:translator-context engraver)).
>>> When the voice is defined in an anonymous way context-id is an empty
>>> string.
>>> I have been trying to set the context-id when none is set using a
>>> counter, but that fails because of an "missing typecheck for property
>>> 'context-id'" error.
>>> I tried to use both a normal list as well as an asoc list to keep
>>> track of the different Voice contexts in order to tell them apart but
>>> I haven't been able to get that to work.
>>>
>>> I know that when lyrics are added, it is possible to refer to those
>>> anonymous voices by using "1" etc.
>>
>> That's nonsense. Voices in a << ... \\ ... \\ >> construct are not
>> anonymous but named "1", "2", "3" by default, and you can refer to
>> those. But this has nothing whatsoever to do with lyrics.
>
> 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.
--
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 <=
- 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, 2017/10/21
- 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