]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/generating-random-notes.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / generating-random-notes.ly
index fd2f070adf6a81e114573345b6225ab1ac050eab..20930095215a9475a31f10e030e6c04c7c0a3a15 100644 (file)
@@ -4,22 +4,10 @@
 %% and then run scripts/auxiliar/makelsr.py
 %%
 %% This file is in the public domain.
-\version "2.14.0"
+\version "2.16.0"
 
 \header {
-  lsrtags = "pitches"
-
-%% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c
-  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"
+  lsrtags = "pitches, really-cool, scheme-language"
 
   texidoc = "
 This Scheme-based snippet generates 24 random notes (or as many as
@@ -31,11 +19,11 @@ get different random note patterns, just change this number.
   doctitle = "Generating random notes"
 } % begin verbatim
 
+
 \score {
   {
-    #(let ((random-state (seed->random-state (current-time))))
-       (ly:export
-        (make-sequential-music
+    $(let ((random-state (seed->random-state (current-time))))
+       (make-sequential-music
          (map (lambda (x)
                 (let ((idx (random 12 random-state)))
                   (make-event-chord
@@ -46,6 +34,6 @@ get different random note patterns, just change this number.
                                         (quotient idx 7)
                                         (remainder idx 7)
                                         0))))))
-              (make-list 24)))))
+              (make-list 24))))
   }
 }