X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fgenerating-random-notes.ly;h=d979660dfa4892e0d2e803ddd54095a70cc28fc3;hb=807be335ea671790730a483938272e74eb012495;hp=2ff76a4ed4fd6ece2a4ea9c5f43b497c8efbf687;hpb=58933e3e40e9cfbdc70b846bc808c723e053f7b3;p=lilypond.git diff --git a/Documentation/snippets/generating-random-notes.ly b/Documentation/snippets/generating-random-notes.ly index 2ff76a4ed4..d979660dfa 100644 --- a/Documentation/snippets/generating-random-notes.ly +++ b/Documentation/snippets/generating-random-notes.ly @@ -1,36 +1,13 @@ %% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it +%% generated from LSR http://lsr.di.unimi.it %% Make any changes in LSR itself, or in Documentation/snippets/new/ , %% and then run scripts/auxiliar/makelsr.py %% %% This file is in the public domain. -\version "2.15.40" +\version "2.18.0" \header { - lsrtags = "pitches, scheme-language, really-cool" - -%% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa - 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" - -%% Translation of GIT committish: 57f9346bb030f49336a858fcbf1519366fe56454 - texidocfr = " -Le fragment de code Scheme ci-dessous génère aléatoirement 24 notes -(ou autant que nécessaire), à partir de l'heure courante (ou un nombre -quelconque donné en argument, afin d'obtenir toujours les mêmes notes -aléatoires). Pour obtenir une autre série de notes, il suffit de -changer ce nombre. - -" - doctitlefr = "Génération de notes aléatoires" + lsrtags = "pitches, really-cool, scheme-language" texidoc = " This Scheme-based snippet generates 24 random notes (or as many as @@ -42,7 +19,6 @@ get different random note patterns, just change this number. doctitle = "Generating random notes" } % begin verbatim - \score { { $(let ((random-state (seed->random-state (current-time)))) @@ -52,7 +28,7 @@ get different random note patterns, just change this number. (make-event-chord (list (make-music 'NoteEvent - 'duration (ly:make-duration 2 0 1 1) + 'duration (ly:make-duration 2 0 1/1) 'pitch (ly:make-pitch (quotient idx 7) (remainder idx 7)