1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
6 %% This file is in the public domain.
13 @code{shiftDurations} can be used to change the note lengths of a piece
14 of music. It takes two arguments - the scaling factor as a power of
15 two, and the number of dots to be added as a positive integer.
18 doctitle = "Automatically change durations"
23 music = \relative c'' { a1 b2 c4 d8 r }
30 \shiftDurations #1 #0 { \music }
32 \shiftDurations #2 #0 { \music }
34 \shiftDurations #-1 #0 { \music }
36 \shiftDurations #-2 #0 { \music }
38 \shiftDurations #0 #1 { \music }
40 \shiftDurations #0 #2 { \music }