Jump to content

Non-stretchable gracenote groups: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
For some instruments such as bagpipes it is desirable to use groups of several gracenotes that do not stretch with the normal music. This can be achieved by setting the <code>GraceSpacing spacing-increment</code> to zero or to a small value.
For some instruments such as bagpipes it is desirable to use groups of several gracenotes that do not stretch with the normal music. This can be achieved by setting the <code>GraceSpacing spacing-increment</code> to zero or to a small value.


<lilypond version="2.24.0" full>
<lilypond version="2.24" full>
%% http://lsr.di.unimi.it/LSR/Item?id=740
%% http://lsr.di.unimi.it/LSR/Item?id=740


Line 29: Line 29:
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 23:35, 21 November 2025

For some instruments such as bagpipes it is desirable to use groups of several gracenotes that do not stretch with the normal music. This can be achieved by setting the GraceSpacing spacing-increment to zero or to a small value.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=740

%here starts the snippet:

\relative c' {
  c4 c_"Normally" \grace { g'32[ c, g' c, g'] } c,4 c |
  c4 c c c | \break
  c4 c_"With tweak applied"
  \override Score.GraceSpacing.spacing-increment = #0
  \grace { g'32[ c, g' c, g'] } c,4 c |
  c4 c c c
}

\layout {
  \context {
    \Score
    \omit BarNumber
  }
}

\paper { tagline = ##f }