Actually, the initial mail of this thread contained a better solution to the problem. Since I weren't used to seeing bar numbers at irregular intervals and since I first missed that the point was to have boxed bar numbers instead of boxed letters, I proposed some other solutions.
/Mats
Paul Scott wrote:
Anthony W. Youngman wrote:
In message <[EMAIL PROTECTED]>, Mats Bengtsson <[EMAIL PROTECTED]> writes
Sorry, I'll learn to read some time. However, if you want boxed bar numbers, then I propose to take a look at the example bar-number-regular-interval.ly in the Tips and Tricks document, which automatically gives boxed bar numbers at regular intervals without any \mark commands in the code.
Except that's NOT what is wanted. What is wanted is a rehearsal mark, which is normally used at the start of a segue or new melody - ie at random not regular intervals.
For example, the piece I've just been doing (admittedly I've been using letters) has marks at various intervals - sometimes 4, often 8, sometimes 12 bars.
And just this evening I've been playing pieces marked up exactly as the OP referred to - using bar numbers as rehearsal marks at random intervals. This is *typical* of medley-style Concert Band pieces.
Since you have to manually place the \mark commands anyway it might not be that much more trouble to just put the bar numbers in manually. You can just put this at the beginning to avoid having to use \markup and \box and \mark
\override Score.RehearsalMark #'print-function =
#(make-stencil-boxer 0.15 0.3 0.3 Text_interface::print)
OTOH if you don't know ahead of time what the bar numbers will be (maybe you want to move things around) it would be great to know how to build an expression which will get the current bar number and put it into the \mark. It looks like Christian might be close. It would be great to have an answer to Christian's original question.
Paul Scott
_______________________________________________ lilypond-devel mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-devel
-- ============================================= Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe =============================================
_______________________________________________ lilypond-devel mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-devel