X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fcreating-a-sequence-of-notes-on-various-pitches.ly;h=837c03d30d7d9c9b9088ac728701b568e9327ef9;hb=942f957aae58fdc7252d6bc2b548a28e9fadc666;hp=2193220390f5eabe015bd99e6eaea70cfee34e30;hpb=5a618037129cace5366969856b708646e9e419ad;p=lilypond.git diff --git a/Documentation/snippets/creating-a-sequence-of-notes-on-various-pitches.ly b/Documentation/snippets/creating-a-sequence-of-notes-on-various-pitches.ly index 2193220390..837c03d30d 100644 --- a/Documentation/snippets/creating-a-sequence-of-notes-on-various-pitches.ly +++ b/Documentation/snippets/creating-a-sequence-of-notes-on-various-pitches.ly @@ -4,25 +4,11 @@ % and then run scripts/auxiliar/makelsr.py % % This file is in the public domain. -%% Note: this file works from version 2.15.27 -\version "2.15.27" +%% Note: this file works from version 2.19.22 +\version "2.19.22" \header { -%% Translation of GIT committish: 6977ddc9a3b63ea810eaecb864269c7d847ccf98 - texidoces = " -En una música que tenga muchas apariciones de la -misma secuencia de notas a distintas alturas, podría ser de -utilidad la siguiente función musical. Admite una nota, de la que -sólo se utiliza su altura. Las funciones de apoyo en Scheme se -han tomado prestadas del documento de \"Consejos y trucos\" de la -versión 2.10 del manual. Este ejemplo crea las duraciones -rítmicas que se usan a todo lo largo de «Marte», de «Los Planetas» -de Gustav Holst. - -" - doctitlees = "Crear una secuencia de notas a distintas alturas" - - lsrtags = "pitches" + lsrtags = "pitches, real-music, really-cool, scheme-language" texidoc = " In music that contains many occurrences of the same sequence of notes @@ -37,9 +23,9 @@ Planets. rhythm = -#(define-music-function (parser location p) (ly:pitch?) +#(define-music-function (p) (ly:pitch?) "Make the rhythm in Mars (the Planets) at the given pitch" - #{ \times 2/3 { $p 8 $p $p } $p 4 $p $p 8 $p $p 4 #}) + #{ \tuplet 3/2 { $p 8 8 8 } 4 4 8 8 4 #}) \new Staff { \time 5/4