Hello Experts,

I'm facing a unique issue or it would be because of my limited knowledge of Lilypond. I have 2 identical Lilypond files, the only difference being that one has \omit Accidental in it. You can see in the mage attached that Lilypond generates them a bit differently. The line dividing the two measures is thicker and it is moved a bit to the right. Any ideas as to how to fix it, so the the 2nd image is identical to the first, but just without the accidentals.

Thanks,
Raj

 \version "2.22.0" \language english boxify = #(define-music-function (grob-path) (key-list?) (define proc (grob-transformer 'stencil (lambda (grob orig) (grob-interpret-markup grob #{ \markup \override #'(box-padding . 1.25) \override #'(thickness . 1) \box \stencil #orig #})))) #{ \override $grob-path . stencil = #proc #}) \header {tagline = ##f} \score {\new Staff { \override Score.SpacingSpanner.strict-note-spacing = ##t \set Score.proportionalNotationDuration = #(ly:make-moment 1/8) \override Staff.MeasureCounter.staff-padding = #4.5 \set Staff.midiInstrument = #"acoustic grand" \key c \major \numericTimeSignature \time 4/4 \clef bass \startMeasureCount f4 g a bf bf4 c' f2 \stopMeasureCount \bar "||"} \layout { \context { \Staff \consists Measure_counter_engraver \boxify MeasureCounter } } }

\version "2.22.0" \language english boxify = #(define-music-function (grob-path) (key-list?) (define proc (grob-transformer 'stencil (lambda (grob orig) (grob-interpret-markup grob #{ \markup \override #'(box-padding . 1.25) \override #'(thickness . 1) \box \stencil #orig #})))) #{ \override $grob-path . stencil = #proc #}) \header {tagline = ##f} \score {\new Staff { \override Score.SpacingSpanner.strict-note-spacing = ##t \set Score.proportionalNotationDuration = #(ly:make-moment 1/8) \override Staff.MeasureCounter.staff-padding = #4.5 \set Staff.midiInstrument = #"acoustic grand" \key c \major \numericTimeSignature \time 4/4 \clef bass \startMeasureCount \omit Accidental f4 g a bf bf4 c' f2 \stopMeasureCount \bar "||"} \layout { \context { \Staff \consists Measure_counter_engraver \boxify MeasureCounter } } }


Reply via email to