[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Measure numbers as rehearsal marks?
From: |
Thomas Morley |
Subject: |
Re: Measure numbers as rehearsal marks? |
Date: |
Tue, 18 Dec 2012 01:41:01 +0100 |
2012/12/18 Richard Hogg <address@hidden>:
> Hello!
> I can't seem to find a way to make random measure numbers. For example, the
> default is to number the first measure of each line, but the documentation
> shows how to show bar numbers every 2, 4, etc. bars. I'm transposing a
> piece where the measure numbers mark the beginning of each (irregular
> length) section, so I need to notate measure numbers 11, 19, 27, 31, 51, 59,
> 67, etc. Is there a way to do this? I found a thread from about 2003 where
> the OP was asking for the same thing, but it was never resolved.
>
> Thanks for the help!
>
> Rick
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
Hi Rick,
the code below doesn't create RehearsalMarks but it shows BarNumbers
as you want.
Store the Numbers to be shown in a list (-> my-shown-barnums)
Call `every-bar-number-of-list-visibleĀ“ as argument of barNumberVisibility.
Don't forget to add \override Score.BarNumber #'break-visibility = ##(#f #t #t)
\version "2.16.1"
#(define my-shown-barnums '(11 19 27 31 51 59 67))
#(define ((every-bar-number-of-list-visible ls) barnum mp)
(if (member barnum ls) #t #f))
\relative c' {
\override Score.BarNumber #'break-visibility = ##(#f #t #t)
\set Score.barNumberVisibility = #(every-bar-number-of-list-visible
my-shown-barnums)
\repeat unfold 70 { c1 }
}
HTH,
Harm