lilypond-user
[Top][All Lists]
Advanced

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

Re: prall with accidental


From: David Kastrup
Subject: Re: prall with accidental
Date: Sun, 20 Jan 2013 19:07:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> 2013/1/19 Werner LEMBERG <address@hidden>:
>>
>>> 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



reply via email to

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