Re: Cleanly showing every measure number
Sam, This doesn't really answer your question, but it might provide a different perspective. In handbell music, it is standard to number each measure centered over the barlines. Normally the number should be above ties, slurs and notes, as shown in your MWE. I think it helps readability. I use: \override Score.BarNumber.break-visibility = ##(#f #t #t) \override Score.BarNumber.self-alignment-X = #CENTER Regards, Rick From: Sam Bivens Sent: Monday, December 9, 2019 1:37 PM To: lilypond-user Subject: Cleanly showing every measure number Hi everyone, For pedagogical reasons, I want to include every measure number in my scores. I've been using the LSR's consistently left-aligned numbers available at http://lsr.di.unimi.it/LSR/Item?id=840 But this causes problems with slurs, ledger lines, etc., which push the measure numbers up high above the given measure (see the attached MWE). Thus I have two related questions: * How might I adjust \consistentlyLeftAlignedMeasureNumbers to keep them consistently near the staff, no matter what the music is? * Alternatively, if there are others that require every number to be measured, how have you solved this problem? I'm unfortunately not too keen on the solution shown in the recent "bar numbers at top of score" thread. Thanks, Sam -- Sam Bivens, Ph.D. Music Theory Faculty Cleveland Institute of Music 11021 East Boulevard Cleveland, OH 44106 sam.biv...@cim.edu<mailto:sam.biv...@cim.edu>
Re: Cleanly showing every measure number
From: Sam Bivens Date: Monday, December 9, 2019 at 12:37 PM To: lilypond-user Subject: Cleanly showing every measure number Hi everyone, For pedagogical reasons, I want to include every measure number in my scores. I've been using the LSR's consistently left-aligned numbers available at http://lsr.di.unimi.it/LSR/Item?id=840 But this causes problems with slurs, ledger lines, etc., which push the measure numbers up high above the given measure (see the attached MWE). Thus I have two related questions: ยท How might I adjust \consistentlyLeftAlignedMeasureNumbers to keep them consistently near the staff, no matter what the music is? If you wish to keep them near the staff at the expense of having collisions, you can just set the outside-staff-priority to ##f: \version "2.19.82" \language "english" consistentlyLeftAlignedBarNumbers = { \override Score.BarNumber.break-visibility = #end-of-line-invisible \override Score.BarNumber.self-alignment-X = #(lambda (grob) (let ((break-dir (ly:item-break-dir grob))) (if (= break-dir RIGHT) RIGHT LEFT))) \override Score.BarNumber #'break-align-symbols = #'(staff-bar clef) \override Score.BarNumber.outside-staff-priority=##f } global = { \key c \minor \time 12/8 } right = \relative c'' { \global s2. ef8 f16 ef d ef \slashedGrace ef8^( g'8)-. f16\(-. ef-. d-. c-. | cf8 bf\) bff bff16 af af[ g] g16.\( f32 ef2.\) | } \score { \new Staff << \consistentlyLeftAlignedBarNumbers \right >> \layout { } } But somehow I doubt this is what you wish to see. I am not aware of any construct that will allow you to bring bar numbers close to the staff (by making them staff objects, rather than outside staff objects) but then require the music to move away from them to avoid collisions. The problem you are running into is that BarNumbers are outside-staff objects, and notes and slurs are staff objects. Collision resolution moves outside-staff objects vertically to clear the staff objects. You can get one solution the problem by modifying BarNumber.space-alist.next-note: \version "2.19.82" \language "english" consistentlyLeftAlignedBarNumbers = { \override Score.BarNumber.break-visibility = #end-of-line-invisible \override Score.BarNumber.self-alignment-X = #(lambda (grob) (let ((break-dir (ly:item-break-dir grob))) (if (= break-dir RIGHT) RIGHT LEFT))) \override Score.BarNumber #'break-align-symbols = #'(staff-bar clef) \override Score.BarNumber.outside-staff-priority=##f \override Score.BarLine.space-alist.next-note = #'(minimum-space . 3) } global = { \key c \minor \time 12/8 } right = \relative c'' { \global s2. ef8 f16 ef d ef \slashedGrace ef8^( g'8)-. f16\(-. ef-. d-. c-. | cf8 bf\) bff bff16 af af[ g] g16.\( f32 ef2.\) | } \score { \new Staff << \consistentlyLeftAlignedBarNumbers \right >> \layout { } } I'm not a huge fan of this, because it puts the bar number down in the music, when I think it should not be confused as part of the music. Personally, I'd just omit the bar number when it doesn't fit. HTH, Carl
RE: Cleanly showing every measure number
From: lilypond-user On Behalf Of Sam Bivens Sent: Monday, December 9, 2019 8:38 PM To: lilypond-user Subject: Cleanly showing every measure number Hi everyone, For pedagogical reasons, I want to include every measure number in my scores. I've been using the LSR's consistently left-aligned numbers available at http://lsr.di.unimi.it/LSR/Item?id=840 But this causes problems with slurs, ledger lines, etc., which push the measure numbers up high above the given measure (see the attached MWE). Thus I have two related questions: * How might I adjust \consistentlyLeftAlignedMeasureNumbers to keep them consistently near the staff, no matter what the music is? * Alternatively, if there are others that require every number to be measured, how have you solved this problem? I'm unfortunately not too keen on the solution shown in the recent "bar numbers at top of score" thread. Thanks, Sam -- Sam Bivens, Ph.D. Music Theory Faculty Cleveland Institute of Music 11021 East Boulevard Cleveland, OH 44106 sam.biv...@cim.edu <mailto:sam.biv...@cim.edu> [>] Maybe to simple, but what about just using \layout { \context { \Score \override BarNumber.break-visibility = #all-visible \override BarNumber.font-size = #+2 \override BarNumber.Y-offset = -20.0 \override BarNumber.extra-offset = #'( 0.0 . +22.0) } } ?
Cleanly showing every measure number
Hi everyone, For pedagogical reasons, I want to include every measure number in my scores. I've been using the LSR's consistently left-aligned numbers available at http://lsr.di.unimi.it/LSR/Item?id=840 But this causes problems with slurs, ledger lines, etc., which push the measure numbers up high above the given measure (see the attached MWE). Thus I have two related questions: - How might I adjust \consistentlyLeftAlignedMeasureNumbers to keep them consistently near the staff, no matter what the music is? - Alternatively, if there are others that require every number to be measured, how have you solved this problem? I'm unfortunately not too keen on the solution shown in the recent "bar numbers at top of score" thread. Thanks, Sam -- Sam Bivens, Ph.D. Music Theory Faculty Cleveland Institute of Music 11021 East Boulevard Cleveland, OH 44106 sam.biv...@cim.edu \version "2.19.82" \language "english" consistentlyLeftAlignedBarNumbers = { \override Score.BarNumber.break-visibility = #end-of-line-invisible \override Score.BarNumber.self-alignment-X = #(lambda (grob) (let ((break-dir (ly:item-break-dir grob))) (if (= break-dir RIGHT) RIGHT LEFT))) \override Score.BarNumber #'break-align-symbols = #'(staff-bar clef) } global = { \key c \minor \time 12/8 } right = \relative c'' { \global s2. ef8 f16 ef d ef \slashedGrace ef8^( g'8)-. f16\(-. ef-. d-. c-. | cf8 bf\) bff bff16 af af[ g] g16.\( f32 ef2.\) | } \score { \new Staff << \consistentlyLeftAlignedBarNumbers \right >> \layout { } }