1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.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</code> can be used to change the note lengths of a
14 piece of music. It takes two arguments - the scaling factor as a power
15 of two, and the number of dots to be added as a positive integer.
18 doctitle = "Automatically change durations"
24 music = \relative c'' { a1 b2 c4 d8 r }
31 \shiftDurations #1 #0 { \music }
33 \shiftDurations #2 #0 { \music }
35 \shiftDurations #-1 #0 { \music }
37 \shiftDurations #-2 #0 { \music }
39 \shiftDurations #0 #1 { \music }
41 \shiftDurations #0 #2 { \music }