1 %% Do not edit this file; it is auto-generated from LSR!
5 This Scheme-based snippet allows you to generate 32 random notes (or as
6 many as you want), based on the current time (or any randomish number
7 you might wish to specify instead, so you can obtain the same random
8 notes each time): i.e. to get different random notes patterns, just
13 { #(let ((random-state (seed->random-state (current-time))))
15 (make-music 'SequentialMusic 'elements
17 (let ((idx (random 12 random-state)))
18 (make-music 'EventChord
19 'elements (list (make-music 'NoteEvent
20 'duration (ly:make-duration 2 0 1 1)
21 'pitch (ly:make-pitch (quotient idx 7)