X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2Fgenerating-random-notes.ly;h=1611b89b6d4dd32b73621126cc7158b47f1ba86f;hb=b97565a9af1c13369ac7e7e9ea80c2638dbc0e51;hp=f199ef159832112c84382749c459162e1a79cffd;hpb=bb91de5b7f8c4f753452730101c2422946067cc3;p=lilypond.git diff --git a/input/lsr/generating-random-notes.ly b/input/lsr/generating-random-notes.ly index f199ef1598..1611b89b6d 100644 --- a/input/lsr/generating-random-notes.ly +++ b/input/lsr/generating-random-notes.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.12.0" +\version "2.13.1" \header { lsrtags = "pitches" +%% Translation of GIT committish: 48f804da6794a7bc8e7fdd4b1649f485b0b09d26 texidoces = " Este fragmento de código basado en Scheme genera 24 notas aleatorias (o tantas como se necesiten), basándose en la @@ -27,17 +28,20 @@ get different random note patterns, just change this number. } % begin verbatim \score { - { #(let ((random-state (seed->random-state (current-time)))) - (ly:export - (make-music 'SequentialMusic 'elements - (map (lambda x - (let ((idx (random 12 random-state))) - (make-music 'EventChord - 'elements (list (make-music 'NoteEvent - 'duration (ly:make-duration 2 0 1 1) - 'pitch (ly:make-pitch (quotient idx 7) - (remainder idx 7) - 0)))))) - (make-list 24))))) + { + #(let ((random-state (seed->random-state (current-time)))) + (ly:export + (make-sequential-music + (map (lambda (x) + (let ((idx (random 12 random-state))) + (make-event-chord + (list + (make-music 'NoteEvent + 'duration (ly:make-duration 2 0 1 1) + 'pitch (ly:make-pitch + (quotient idx 7) + (remainder idx 7) + 0)))))) + (make-list 24))))) } }