Henk

It is possible, but rather messy, AFAIK.  Anyone know an easier way?

Here's some code to give you a start. Essentially you draw a coloured box with \markup, experiment to get the right size, move it into the right position, and place it in layer -1 to put it underneath everything else. If you add this when everything else is stable it is just about do-able.

Trevor

\version "2.11.56"
\relative c'' {
 a1 a  a
 % move to right position
 -\tweak #'extra-offset #'(-2 . -4.5)
 % place in bottom layer
 -\tweak #'layer #-1
 ^\markup {
   % specify color
   \with-color #(rgb-color 1 0.5 0.5)
   % specify size
   \filled-box #'(0 . 8) #'(0 . 4) #0
 }
 a
}

----- Original Message ----- From: "Henk van Voorthuijsen" <[EMAIL PROTECTED]>
To: "Lilipond" <[email protected]>
Sent: Wednesday, September 03, 2008 9:56 PM
Subject: Setting background color for a given range of measures


Is it possible to do this, if I want to give, say, measure 17-24 a different background color?

Henk




_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user




_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to