Jump to content

Proportional strict grace notes: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
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


Line 16: Line 16:
[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 23:23, 21 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 
}