lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question to generating random pitches snippet


From: Stefan Thomas
Subject: Re: question to generating random pitches snippet
Date: Tue, 13 Jun 2023 22:18:38 +0200

Dear Jean,
thanks for Your answer. I understand now!

Am Di., 13. Juni 2023 um 16:43 Uhr schrieb Jean Abou Samra <jean@abou-samra.fr>:
Le mardi 13 juin 2023 à 16:34 +0200, Stefan Thomas a écrit :
Exactly. Sorry I've forgotten to send the link.

The snippet contains the _expression_

(random 12 random-state)

meaning that a random pitch between c' and 11 steps higher (i.e., g'') is chosen. You can change that to, e.g.,

(random 15)

to have a pitch between c' and c''' , or

(+ -7 (random 15))

for a pitch between c and c' .

reply via email to

[Prev in Thread] Current Thread [Next in Thread]