lilypond-user
[Top][All Lists]
Advanced

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

Re: Color tweaks (edition engraver)


From: Thomas Morley
Subject: Re: Color tweaks (edition engraver)
Date: Sat, 2 May 2015 19:00:55 +0200

2015-05-02 18:53 GMT+02:00 David Nalesnik <address@hidden>:
> Hi Harm,
>
> On Sat, May 2, 2015 at 11:45 AM, Thomas Morley <address@hidden>
> wrote:
>>
>> 2015-05-02 17:20 GMT+02:00 David Nalesnik <address@hidden>:
>>
>> > [...]
>> > OK!  Though I am disappointed you don't have a magical way to put scores
>> > in
>> > variables :)
>> >  [...]
>> >
>> > David
>>
>>
>> %%%% start snippet
>>
>> \version "2.19.18"
>>
>> m = \new Staff { c''1 }
>>
>> mL =
>>   \layout {
>>     \context {
>>       \Score
>>       \override NoteHead #'color = #red
>>     }
>>   }
>>
>> %myS = \score { \m \layout { \mL } } %% for 2.18.2
>> myS = \score { \m \mL }
>>
>> myB =
>>   \book {
>>     \header { title = "book-title" }
>>     \myS
>>   }
>>
>> \myS
>>
>> \myB
>>
>> %%%% end snippet
>>
>>
>> works for me ;)
>>
>
> Useful snippet!
>
> But unfortunately, you can't do
>
> \displayMusic \myS
>
> because \myS produces a #<Score> object, not a music expression.

Yep, though you can do:

\displayMusic #(ly:score-music myS)

>
> --David



reply via email to

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