]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/generating-random-notes.ly
Merge branch 'master' of ssh://jneem@git.sv.gnu.org/srv/git/lilypond into tmp
[lilypond.git] / input / lsr / generating-random-notes.ly
index 5e699102e965a7d44bdb0bfab87c52731d7d8892..1ee8d11f2c096837ae02e55e90423bee32279b03 100644 (file)
@@ -1,18 +1,33 @@
 %% 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.64"
+
+\header {
+  lsrtags = "pitches"
+
+  texidoces = "
+Este fragmento de código basado en Scheme genera
+24 notas aleatorias (o tantas como se necesiten), basándose en la
+hora actual (o en cualquier número pseudo-aleatorio que se
+especifique en su lugar, para obtener las mismas notas aleatorias
+cada vez): es decir, para obtener distintos patrones de notas,
+sólo tiene que modificar este número.
+
+"
+  doctitlees = "Generación de notas aleatorias"
+
+  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
 
-\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
 \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 +38,6 @@ change this number.
                               'pitch (ly:make-pitch (quotient idx 7)
                                       (remainder idx 7)
                                       0))))))
-       (make-list 32)))))
-   }
+       (make-list 24)))))
+  }
 }