X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2Fgenerating-random-notes.ly;h=b71c9b1185532ca08c5e32fad1cb1c1314be3099;hb=fb09f28821ce6ce66ec508ddaa8c9320d2813695;hp=f199ef159832112c84382749c459162e1a79cffd;hpb=730e35bfe91fc8b151fbd54c6daddaf930664327;p=lilypond.git diff --git a/input/lsr/generating-random-notes.ly b/input/lsr/generating-random-notes.ly index f199ef1598..b71c9b1185 100644 --- a/input/lsr/generating-random-notes.ly +++ b/input/lsr/generating-random-notes.ly @@ -1,6 +1,6 @@ %% 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.12.3" \header { lsrtags = "pitches" @@ -27,17 +27,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))))) } }