X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2Fcreating-a-sequence-of-notes-on-various-pitches.ly;h=3667374650724ade427ef09d7a53b29c773dd1ce;hb=b97565a9af1c13369ac7e7e9ea80c2638dbc0e51;hp=d074c12820a8ba5a6fdc3359ca26f238b45c4dcd;hpb=171ae434d4f0bc9772d45d0328e050e622e0fe6c;p=lilypond.git diff --git a/input/lsr/creating-a-sequence-of-notes-on-various-pitches.ly b/input/lsr/creating-a-sequence-of-notes-on-various-pitches.ly index d074c12820..3667374650 100644 --- a/input/lsr/creating-a-sequence-of-notes-on-various-pitches.ly +++ b/input/lsr/creating-a-sequence-of-notes-on-various-pitches.ly @@ -1,10 +1,11 @@ %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it %% This file is in the public domain. -\version "2.11.61" +\version "2.13.1" \header { lsrtags = "pitches" +%% Translation of GIT committish: 48f804da6794a7bc8e7fdd4b1649f485b0b09d26 texidoces = " En una música que tenga muchas apariciones de la misma secuencia de notas a distintas alturas, podría ser de @@ -29,49 +30,48 @@ throughout Mars, from Gustav Holst's The Planets. " doctitle = "Creating a sequence of notes on various pitches" } % begin verbatim + #(define (make-note-req p d) - (make-music 'NoteEvent - 'duration d - 'pitch p)) + (make-music 'NoteEvent + 'duration d + 'pitch p)) #(define (make-note p d) - (make-music 'EventChord - 'elements (list (make-note-req p d)))) + (make-music 'EventChord + 'elements (list (make-note-req p d)))) #(define (seq-music-list elts) - (make-music 'SequentialMusic - 'elements elts)) + (make-music 'SequentialMusic + 'elements elts)) #(define (make-triplet elt) - (make-music 'TimeScaledMusic - 'denominator 3 - 'numerator 2 - 'element elt)) - + (make-music 'TimeScaledMusic + 'denominator 3 + 'numerator 2 + 'element elt)) -rhythm = #(define-music-function (parser location note) (ly:music?) - "Make the rhythm in Mars (the Planets) at the given note's pitch" - (let* ((p (ly:music-property - (car (ly:music-property note 'elements)) - 'pitch))) - (seq-music-list (list - (make-triplet (seq-music-list (list - (make-note p (ly:make-duration 3 0 2 3)) - (make-note p (ly:make-duration 3 0 2 3)) - (make-note p (ly:make-duration 3 0 2 3)) - ))) - (make-note p (ly:make-duration 2 0)) - (make-note p (ly:make-duration 2 0)) - (make-note p (ly:make-duration 3 0)) - (make-note p (ly:make-duration 3 0)) - (make-note p (ly:make-duration 2 0)) - )))) +rhythm = +#(define-music-function (parser location note) (ly:music?) + "Make the rhythm in Mars (the Planets) at the given note's pitch" + (let ((p (ly:music-property + (car (ly:music-property note 'elements)) + 'pitch))) + (seq-music-list + (list + (make-triplet (seq-music-list + (list + (make-note p (ly:make-duration 3 0 2 3)) + (make-note p (ly:make-duration 3 0 2 3)) + (make-note p (ly:make-duration 3 0 2 3))))) + (make-note p (ly:make-duration 2 0)) + (make-note p (ly:make-duration 2 0)) + (make-note p (ly:make-duration 3 0)) + (make-note p (ly:make-duration 3 0)) + (make-note p (ly:make-duration 2 0)))))) -\score { - \new Staff { - \time 5/4 - \rhythm c' - \rhythm c'' - \rhythm g - } +\new Staff { + \time 5/4 + \rhythm c' + \rhythm c'' + \rhythm g }