Jump to content

Proportional spacing: 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:
Proportional notation can be created by setting <code>proportionalNotationDuration</code>. Notes will be spaced proportional to the distance for the given duration.
Proportional notation can be created by setting <code>proportionalNotationDuration</code>. Notes will be spaced proportional to the distance for the given duration.


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


Line 19: Line 19:
[[Category:Spacing]]
[[Category:Spacing]]
[[Category:Specific notation]]
[[Category:Specific notation]]
[[Category:Snippet]]

Latest revision as of 23:23, 21 November 2025

Proportional notation can be created by setting proportionalNotationDuration. Notes will be spaced proportional to the distance for the given duration.

\version "2.24"

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

\relative c''
<<
  \set Score.proportionalNotationDuration = #(ly:make-moment 1/16)
  \new Staff { 
    c8[ c c c c c] c4 c2 r2 
  }
  \new Staff { 
    c2 \tuplet 3/2 { c8 c c } c4 c1 
  }
>>