Jump to content

Scaling durations: 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:
You can alter the length of duration by a fraction <code>N/M</code> appending `<code>*</code><code>N/M</code>' (or `<code>*</code><code>N</code>' if <code>M=1</code>). This will not affect the appearance of the notes or rests produced.
You can alter the length of duration by a fraction <code>N/M</code> appending `<code>*</code><code>N/M</code>' (or `<code>*</code><code>N</code>' if <code>M=1</code>). This will not affect the appearance of the notes or rests produced.


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

Revision as of 18:51, 16 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
}