]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/automatically-change-durations.ly
Merge branch 'translation' into staging
[lilypond.git] / Documentation / snippets / automatically-change-durations.ly
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
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10   lsrtags = "rhythms"
11
12 %% Translation of GIT committish: 1cda7b7b8219cb97399b8e7b56c1115aaf82c002
13   texidocfr = "
14 @code{shiftDurations} permet de modifier la longueur des notes d'un
15 morceau.  Cette instruction prend deux arguments@tie{}: un coefficient
16 d'Ă©chelonnement (une puissance de deux) et un nombre de points
17 d'augmentation (entier positif).
18
19 "
20   doctitlefr = "Changement automatique des durĂ©es"
21
22   texidoc = "
23 <code>shiftDurations</code> can be used to change the note lengths of a
24 piece of music.  It takes two arguments - the scaling factor as a power
25 of two, and the number of dots to be added as a positive integer.
26
27 "
28   doctitle = "Automatically change durations"
29 } % begin verbatim
30
31
32 \paper { indent = 0 }
33
34 music = \relative c'' { a1 b2 c4 d8 r }
35
36 \score {
37   \new Voice {
38     \time 4/2
39     \music
40     \time 4/4
41     \shiftDurations #1 #0 { \music }
42     \time 2/4
43     \shiftDurations #2 #0 { \music }
44     \time 4/1
45     \shiftDurations #-1 #0 { \music }
46     \time 8/1
47     \shiftDurations #-2 #0 { \music }
48     \time 6/2
49     \shiftDurations #0 #1 { \music }
50     \time 7/2
51     \shiftDurations #0 #2 { \music }
52   }
53 }