lilypond-user
[Top][All Lists]
Advanced

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

Re: applyOutput Lyrics.LyricText not working?


From: Thomas Morley
Subject: Re: applyOutput Lyrics.LyricText not working?
Date: Sun, 3 Jul 2016 01:19:09 +0200

2016-07-03 0:19 GMT+02:00 David Kastrup <address@hidden>:
> Thomas Morley <address@hidden> writes:
>
>> Hi,
>>
>> consider the following two snippets:
>>
>> \version "2.19.44"
>>
>> \new ChordNames
>>   \chordmode {
>>    \applyOutput ChordNames.ChordName
>>      #(lambda (g ctx p)
>>        (write-me "\ng" g)
>>        (write-me "ctx" ctx)
>>        (write-me "p" p)
>>        )
>>     c
>>   }
>>
>> \new Lyrics
>>   \lyricmode {
>>    \applyOutput Lyrics.LyricText
>>      #(lambda (g ctx p)
>>        (write-me "\ng" g)
>>        (write-me "ctx" ctx)
>>        (write-me "p" p)
>>        )
>>     foo
>>   }
>>
>> I get terminal-output as requested from the first example but none
>> from the second.
>>
>> Am I doing something wrong?
>> Is there a limitation I'm not aware?
>> Or simply a bug?
>
> Well, call it what you want...
>
>
>
> Two possible ways to fix this:
>
> 1) add the Output_property_engraver on all possibly interesting
> Bottom(?) contexts
> 2) Move the Output_property_engraver to Score level only and change it
> so that it sends the respective grob starting from the originating
> engraver context to the first (all?) context in the parentage of that
> context that matches the alias.
>
> The second solution is more work but also more likely to work as
> expected without further thinking.
>
> --
> David Kastrup
>

Thanks for the hints, I'll have to test how it will work...

What's the reason Output_property_engraver is not added more or less everywhere?

Thanks,
  Harm



reply via email to

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