On 06.01.2016 22:05, Simon Albrecht wrote:
On 06.01.2016 21:40, Ryan Michael wrote:
i want a
dis1
with < > (cresencendo / decrescendo)
underneath it. How can I do that and size the crescendo and
decresendo to my liking (say span the < to last 3 quarters of the
whole note and the > to last a quarter)
I have a very handy music function for that (based on an idea by David
K.):
after =
#(define-music-function (t e m) (ly:duration? ly:music? ly:music?)
#{
<<
#m
{ \skip $t <> -\tweak extra-spacing-width #empty-interval $e }
>>
#})
With that you can write things like:
\new Voice {
\after 2. \> dis1\< <>\! |
\after 4 \< \after 2 \> \after 2. \p dis1
\after 2. \stopTrillSpan dis1\startTrillSpan
Sorry for the typo here: should be \downbow (lowercase only)
\after 2 \upbow dis1\downBow
}
Note that it’s essential to explicitly create the voice with \new
Voice, else the <<>> in the music function will create new voices and
it won’t work.
HTH, Simon
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user