Johan Vromans wrote: > > I have the following snippet: > > s1*6/8 |%0 > \set Score.currentBarNumber = #1 > s1*1/8 s1*1/2 g8\p |%1 > g4 g8 g4 g8 |%2 > a8 a8 a8~ a4 e8 |%3 > > I want the bar number "1" to show at the second measure. I've tried all > the tricks from the snippet repo but didn't succeed. E.g., this prints > bar number "2" but not "1": > > \override Score.BarNumber #'break-visibility = #(lambda (barnum) #t) > s1*6/8 |%1 > \set Score.currentBarNumber = #1 > s1*1/8 s1*1/2 g8\p |%1 > g4 g8 g4 g8 |%2 > \revert Score.BarNumber #'break-visibility > a8 a8 a8~ a4 e8 |%3 > > What trick did I miss? >
you can try: \set Score.currentBarNumber = #0 \set Score.barNumberVisibility = #all-bar-numbers-visible \override Score.BarNumber #'break-visibility = #'#(#t #t #t) \time 6/8 s8*6 |%0 … -- View this message in context: http://old.nabble.com/Printing-barnumber-1-%28oh-no%2C-not-again%29-tp30168240p30169076.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/lilypond-user
