%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/automatically-change-durations.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Snippet Repository
%% (http://lsr.di.unimi.it).
%%
%% Make any changes in the LSR itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.23.13"

\header {
%% Translation of GIT committish: a8a85e19654e46d725563e6deba44083ef137a2c
  texidocja = "
ある音楽の音符の長さを変更するために*、@code{shiftDurations} を@c
使用することができます。これは 2 つの引数を取ります -- 1 つ目は
2 のべき乗で与えられる倍率、2 つ目は付け加える付点の数を表す正の整数です。
"
  doctitleja = "自動で音価を変更する"

%% Translation of GIT committish: a3fd5364fc4f247579da0ed2bfea887ab37285c6
  texidocfr = "
@code{shiftDurations} permet de modifier la longueur des notes d'un
morceau.

Cette instruction prend deux arguments : un coefficient d'échelonnement
(une puissance de deux) et un nombre de points d'augmentation (entier
positif).
"

  doctitlefr = "Changement automatique des durées"

%% Translation of GIT committish: 8ffecf6be17c6ec2ff87cf31873121a8cce29b09
  texidoces = "
Se puede usar @code{shiftDurations} para cambiar la longitud de
las notas de una pieza musical.  Toma dos argumentos: el factor de
escalado como una potencia de dos, y el número de puntillos que añadir
como un entero positivo.

"
  doctitlees = "Modificar duraciones automáticamente"

%% Translation of GIT committish: 8ffecf6be17c6ec2ff87cf31873121a8cce29b09
  texidocca = "
Es pot usar @code{shiftDurations} per canviar la longitud de les
notes d'una peça musical.  Agafa dos arguments: El factor
d'escalat com una potència de dos, i el nombre de puntets a afegir
com un enter positiu.

"
  doctitleca = "Modificar duracions automàticament"

  lsrtags = "rhythms"

  texidoc = "
@code{shiftDurations} can be used to change the note lengths of a piece
of music.

It takes two arguments - the scaling factor as a power of two, and the
number of dots to be added as a positive integer.
"

  doctitle = "Automatically change durations"
} % begin verbatim


\paper { indent = 0 }

music = \relative c'' { a1 b2 c4 d8 r }

\score {
  \new Voice {
    \time 4/2
    \music
    \time 4/4
    \shiftDurations #1 #0 { \music }
    \time 2/4
    \shiftDurations #2 #0 { \music }
    \time 4/1
    \shiftDurations #-1 #0 { \music }
    \time 8/1
    \shiftDurations #-2 #0 { \music }
    \time 6/2
    \shiftDurations #0 #1 { \music }
    \time 7/2
    \shiftDurations #0 #2 { \music }
  }
}



% ****************************************************************
% end ly snippet
% ****************************************************************
