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.
10 lsrtags = "really-cool, pitches, scheme-language"
12 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
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"
37 $(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)