]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/generating-random-notes.ly
Fix makelsr.py and update input/lsr
[lilypond.git] / input / lsr / generating-random-notes.ly
index 5e699102e965a7d44bdb0bfab87c52731d7d8892..d70d12884df336eea7b4a96e784cc498d59c3ca2 100644 (file)
@@ -1,18 +1,21 @@
 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
 %% This file is in the public domain.
-%% Tags: pitches
-\version "2.11.35"
+\version "2.11.38"
 
-\header { texidoc = "
-This Scheme-based snippet allows you to generate 32 random notes (or as
-many as you want), based on the current time (or any randomish number
-you might wish to specify instead, so you can obtain the same random
-notes each time): i.e. to get different random notes patterns, just
-change this number.
-" }
-% begin verbatim
+\header {
+  lsrtags = "pitches"
+
+  texidoc = "
+This Scheme-based snippet generates 24 random notes (or as many as
+required), based on the current time (or any randomish number specified
+instead, in order to obtain the same random notes each time): i.e., to
+get different random note patterns, just change this number.
+
+"
+  doctitle = "Generating random notes"
+} % begin verbatim
 \score {
-{ #(let ((random-state (seed->random-state (current-time))))
+  { #(let ((random-state (seed->random-state (current-time))))
     (ly:export
      (make-music 'SequentialMusic 'elements
       (map (lambda x
@@ -23,6 +26,6 @@ change this number.
                               'pitch (ly:make-pitch (quotient idx 7)
                                       (remainder idx 7)
                                       0))))))
-       (make-list 32)))))
-   }
+       (make-list 24)))))
+  }
 }