Hi Harm, On Sat, May 2, 2015 at 11:45 AM, Thomas Morley <thomasmorle...@gmail.com> wrote:
> 2015-05-02 17:20 GMT+02:00 David Nalesnik <david.nales...@gmail.com>: > > > [...] > > 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. --David
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user