[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting background color for a given range of measures
From: |
Trevor Daniels |
Subject: |
Re: Setting background color for a given range of measures |
Date: |
Wed, 3 Sep 2008 23:19:58 +0100 |
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" <address@hidden>
To: "Lilipond" <address@hidden>
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
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user