1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
6 %% This file is in the public domain.
12 %% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c
14 Este fragmento de código basado en Scheme genera
15 24 notas aleatorias (o tantas como se necesiten), basándose en la
16 hora actual (o en cualquier número pseudo-aleatorio que se
17 especifique en su lugar, para obtener las mismas notas aleatorias
18 cada vez): es decir, para obtener distintos patrones de notas,
19 sólo tiene que modificar este número.
22 doctitlees = "Generación de notas aleatorias"
25 This Scheme-based snippet generates 24 random notes (or as many as
26 required), based on the current time (or any randomish number specified
27 instead, in order to obtain the same random notes each time): i.e., to
28 get different random note patterns, just change this number.
31 doctitle = "Generating random notes"
36 #(let ((random-state (seed->random-state (current-time))))
38 (make-sequential-music
40 (let ((idx (random 12 random-state)))
43 (make-music 'NoteEvent
44 'duration (ly:make-duration 2 0 1 1)