Jump to content

Proportional strict grace notes: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
With <code>strict-note-spacing</code> spacing for grace notes (even multiple ones) is floating as well.
With <code>strict-note-spacing</code> spacing for grace notes (even multiple ones) is floating as well.


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



Revision as of 18:55, 16 November 2025

With strict-note-spacing spacing for grace notes (even multiple ones) is floating as well.

\version "2.24"

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

\relative c'' {
  \override Score.SpacingSpanner.strict-note-spacing = ##t 
  \set Score.proportionalNotationDuration = #(ly:make-moment 1/12)
  c8[ \grace { c16 c } c8 c8 c8] 
  c2 
}