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