[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extenders are not printed for lyrics associated with multi-staff con
From: |
Alexander Kobel |
Subject: |
Re: Extenders are not printed for lyrics associated with multi-staff contexts |
Date: |
Thu, 5 Jan 2017 12:15:32 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 |
Back to the drawing board...
\set associatedVoice = #""
\set associatedVoiceType = #'Staff
seem to simply mean that the topmost context is chosen for associating the
lyrics with it. If there is a different rhythm there, the result is wrong again
- see the attached file. The previous version was only correct by accident.
ChordNames is nothing special (except that extenders do not seem to work on
ChordNames lyrics at all) - it's just that they typically are the topmost
context.
So, AFAICS, for lyrics assigned to a container context, the associated voice
search should be restricted to contexts within that container. Still too
unfamiliar with the internals of that hierarchy to know how I can modify that
search appropriately; still, get_voice_to_lyrics looks like a good starting
place to me...
Cheers,
Alexander
On 2017-01-02 18:52, Alexander Kobel wrote:
> Ahem, I hit "send" too early.
>
> On 2017-01-02 18:38, Alexander Kobel wrote:
>> Going over the get_voice_to_lyrics function in lily/lyric-engraver.cc, I
>> eventually noticed that correct extenders are printed for lyrics
>> assigned to Staff and one of the above [container] groups *unless there is
>> a ChordNames context.* [...]
>
> when the following is added:
> % \set searchForVoice = ##f
> % \set associatedVoiceContext = ##f
> \set associatedVoice = #""
> \set associatedVoiceType = #'Staff
> as seen in the attached lyr-ctx.ly. And, on a second try, turns out that only
> the last two lines are required. Also, associatedVoice has to be the empty
> string, not just any non-existing value.
>
>
> Cheers,
> Alexander
>
> _______________________________________________
> bug-lilypond mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
lyr-ctx.ly
Description: Text Data