Xavier Scheuer a écrit , Le 11/10/2010 16:08:
>> Can I ask how do you achieve the right aligned 'repeat 4 times' in this
>> score?
>
> I would do something like that:
>
> \relative c'' {
> \repeat volta 4 {
> c1
> % displayed at the end of a line and at the end of the score
> \once \override Score.RehearsalMark #'break-visibility =
> #end-of-line-visible
> % \override Score.RehearsalMark #'break-visibility =
> #begin-of-line-invisible
> % right aligned (default value: #CENTER)
> \once \override Score.RehearsalMark #'self-alignment-X = #RIGHT
> % normal size (default value: #+1)
> \once \override Score.RehearsalMark #'font-size = #0
> % printed below the Staff (if wanted)
> % \once \override Score.RehearsalMark #'direction = #-1
> \mark \markup "4X"
> }
> }
Xavier and James, you made my day \o/
After a few more tests I came up with this snippet which works in both
cases, end of line or not:
\relative c'' {
\repeat volta N {
...
}
\once \override Score.RehearsalMark #'break-visibility =
#begin-of-line-invisible
\once \override Score.RehearsalMark #'self-alignment-X = #RIGHT
\once \override Score.RehearsalMark #'font-size = #0
\mark \markup "Repeat N times"
}
Now all I need is to put this into a conditional statement so that the
markup doesn't appear when using \unfoldRepeats.
Thanks,
_g.
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user