Klaus and Thomas,
Thank you. These are exactly the kind of thing I was looking for.
I've been starting to fool around with scheme and it's going very
slowly. Maybe examining these and learning how/why they work will help
me with the lilypond-specific scheme knowledge required to start solving
some of these challenges.
Do either of you recommend a source on Scheme for beginners?
Thanks,
David
On 06/29/2015 06:32 PM, lilypond-user-requ...@gnu.org wrote:
Maybe there's a way to have a function tweak all the notes in a music
>expression, but that's far beyond my scheme knowledge.
>
>Cheers,
>Klaus
Maybe:
\version "2.18.2"
font-size-tweak =
#(define-music-function (parser location music) (ly:music?)
(map-some-music
(lambda (m)
(and (music-is-of-type? m 'note-event)
#{ \tweak font-size #-3 $m #}))
music))
leadVoice = \relative c'' { c4( d e2 ) }
bkgdVoiceI = \relative c'' { g4( b c2 ) }
bkgdVoiceII = \relative c'' { e4( f g2 ) }
\new Voice
<<
\font-size-tweak \bkgdVoiceII
\leadVoice
\font-size-tweak \bkgdVoiceI
>>
HTH,
Harm
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user