Jump to content

Scaling durations: Difference between revisions

From LilyPond wiki
No edit summary
m New category
Tags: Mobile edit Mobile web edit
 
Line 20: Line 20:
[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Automatic notation]]
[[Category:Automatic notation]]
[[Category:Really simple]][[Category:Snippet]]
[[Category:Really simple]]
[[Category:Snippet]]

Latest revision as of 23:32, 21 November 2025

You can alter the length of duration by a fraction N/M appending `*N/M' (or `*N' if M=1). This will not affect the appearance of the notes or rests produced.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=6
%% see also http://lsr.di.unimi.it/LSR/Item?id=324

\relative c'' {
  \time 2/4
  % Alter durations to triplets
  a4*2/3 gis a
  % Normal durations
  a4 a
  % Double the duration of chord
  <a d>4*2
  % Duration of quarter, appears like sixteenth
  b16*4 c4
}