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