lilypond-user
[Top][All Lists]
Advanced

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

Box around MeasureCounter


From: Rajesh Baskar
Subject: Box around MeasureCounter
Date: Wed, 17 Nov 2021 22:29:55 +0000

Hi,

Does anyone know how to add a box around a measure counter? I have included two images below, one is the image that is generated using the below lilypond code and the other on is what I’m trying to achieve.

 

Thanks

 

\version "2.22.0" \include "english.ly" \header {tagline = "" }

\score {\new Staff {

  \override Score.SpacingSpanner.strict-note-spacing = ##t

  \set Score.proportionalNotationDuration = #(ly:make-moment 1/4)

  \set Staff.midiInstrument = #"Acoustic Grand Piano"

  \key c \major \numericTimeSignature

  \time 4/4

  \clef treble

  \override TextScript.extra-offset = #'(3 . 4.8)

  \override TextScript.font-size = #7 -\markup {\with-color "#6A00F4" "?" }

  \override Staff.MeasureCounter.staff-padding = #2

  \startMeasureCount

  \hideNotes b'2 c''

  \unHideNotes d'' d''4 g'

  \bar "||"}

        \layout {

              \context {

                    \Staff

                     \consists Measure_counter_engraver

                        }

                }

        \midi { \tempo 4 =92}

}

 

Example of Measure Counter with box

 


reply via email to

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