lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RhythmicStaff with measure counter


From: Rajesh Baskar
Subject: Re: RhythmicStaff with measure counter
Date: Wed, 6 Sep 2023 11:22:01 -0700
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0

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

[Prev in Thread] Current Thread [Next in Thread]