Thomas Morley <thomasmorle...@googlemail.com> writes:

> 2013/1/19 Werner LEMBERG <w...@gnu.org>:
>>
>>> Of course, you can easily write the tweak version instead:
>>>
>>> prallSharp =
>>> -\tweak Script.text \markup {
>>>   \override #'(baseline-skip . 1.2) \center-column {
>>>     \fontsize #-4 \sharp
>>>     \musicglyph #"scripts.prall"
>>>   } }
>>> -\tweak Script.stencil #ly:text-interface::print \prall
>
> With this approach transposing will sometimes result in wrong accidentals.

How about something like
c-\pitched cis \prall
which modifies the stencil of \prall when it finds that cis does not fit
the current key signature?  It would slap a 'pitch field on the prall
event (so that \transpose has something to mangle) and check its state
when typesetting.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to