Thank you so much Jean.

On 9/6/2023 7:57 AM, Jean Abou Samra wrote:
Le mardi 05 septembre 2023 à 19:22 -0700, Rajesh Baskar a écrit :
I'm trying to achieve displaying the measure counter on top of the each
measure on a rhythmic staff.  The below script working fine if you
change the \new RhythmicStaff to \new Staff.

How do I make this script work for rhythmicStaff.


Paul gave the solution. But this also sounds like a use case for
the centered bar numbers feature implemented in 2.24.

\version "2.24"

\language english

\header {
   tagline = ""
}

\score {
   \new RhythmicStaff \with { midiInstrument = "acoustic grand" } {
     \key c \major
     \numericTimeSignature
     \time 4/4
     \startMeasureCount
     c'2 2 4 4 2
     \stopMeasureCount
     \bar "||"
   }
   \layout {
     \context {
       \Score
       \override SpacingSpanner.strict-note-spacing = ##t
       proportionalNotationDuration = #(ly:make-moment 1/8)

       centerBarNumbers = ##t
       barNumberVisibility = #all-bar-numbers-visible
       \override CenteredBarNumber.stencil =
         #(make-stencil-boxer 0.2 1.25 ly:text-interface::print)
     }
   }
   \midi { \tempo 4 =92 }
}





Best,
Jean



Reply via email to