Scaling durations: Difference between revisions
Appearance
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: | ||
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 | <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 | ||
| Line 21: | Line 21: | ||
[[Category:Automatic notation]] | [[Category:Automatic notation]] | ||
[[Category:Really simple]] | [[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
}