Proportional strict notespacing: Difference between revisions
Appearance
m New category |
mNo edit summary |
||
| Line 1: | Line 1: | ||
If <code>strict-note-spacing</code> is set spacing of notes is not influenced by bars or clefs within a system. Rather, they are placed just before the note that occurs at the same time. This may cause collisions. | If the <code>strict-note-spacing</code> property of the <code>SpacingSpanner</code> grob is set to <code>#t</code>, spacing of notes is not influenced by bars or clefs within a system. Rather, they are placed just before the note that occurs at the same time. This may cause collisions. | ||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
| Line 5: | Line 5: | ||
\override Score.SpacingSpanner.strict-note-spacing = ##t | \override Score.SpacingSpanner.strict-note-spacing = ##t | ||
\set Score.proportionalNotationDuration = #(ly:make-moment 1/16) | \set Score.proportionalNotationDuration = #(ly:make-moment 1/16) | ||
\new Staff { | \new Staff { | ||
c8[ c \clef alto c c \grace { d16 } c8 c] c4 | c8[ c \clef alto c c \grace { d16 } c8 c] c4 | ||
| Line 16: | Line 17: | ||
</lilypond> | </lilypond> | ||
[[Category:Spacing]] | [[Category:Spacing]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | [[Category:Snippet]] | ||
Latest revision as of 12:34, 30 December 2025
If the strict-note-spacing property of the SpacingSpanner grob is set to #t, spacing of notes is not influenced by bars or clefs within a system. Rather, they are placed just before the note that occurs at the same time. This may cause collisions.
\version "2.24"
\relative c'' <<
\override Score.SpacingSpanner.strict-note-spacing = ##t
\set Score.proportionalNotationDuration = #(ly:make-moment 1/16)
\new Staff {
c8[ c \clef alto c c \grace { d16 } c8 c] c4
c2 \grace { c16[ c16] } c2
}
\new Staff {
c2 \tuplet 3/2 { c8 \clef bass cis,, c } c4
c1
}
>>