Re: question to generating random pitches snippet
Dear Jean, thanks for Your answer. I understand now! Am Di., 13. Juni 2023 um 16:43 Uhr schrieb Jean Abou Samra < j...@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' . >
Re: question to generating random pitches snippet
Le mardi 13 juin 2023 à 16:43 +0200, Jean Abou Samra a écrit : > 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' . I've just improved the snippet in LSR so that it's easy to specify a different interval of pitches. https://lsr.di.unimi.it/LSR/Item?id=274 signature.asc Description: This is a digitally signed message part
Re: question to generating random pitches snippet
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' . signature.asc Description: This is a digitally signed message part
Re: question to generating random pitches snippet
Exactly. Sorry I've forgotten to send the link. Am Di., 13. Juni 2023 um 16:15 Uhr schrieb Kenneth Flak < kennethf...@protonmail.com>: > > On 13 Jun 2023 16:12, Jean Abou Samra wrote: > >Le mardi 13 juin 2023 à 15:56 +0200, Stefan Thomas a écrit : > >> Dear community, > >> I discovered the snippet that lets you generate random pitches in > Lilypond. > >> How does Lilypond "know" what are the lowest, what are the highest > pitches? > >> How could I change that? > > > > > > > >Which snippet are you talking about? > > > Maybe this one? > > > https://lilypond.org/doc/v2.25/Documentation/snippets/pitches_003a-generating-random-notes.html > >
Re: question to generating random pitches snippet
On 13 Jun 2023 16:12, Jean Abou Samra wrote: >Le mardi 13 juin 2023 à 15:56 +0200, Stefan Thomas a écrit : >> Dear community, >> I discovered the snippet that lets you generate random pitches in Lilypond. >> How does Lilypond "know" what are the lowest, what are the highest pitches? >> How could I change that? > > > >Which snippet are you talking about? Maybe this one? https://lilypond.org/doc/v2.25/Documentation/snippets/pitches_003a-generating-random-notes.html
Re: question to generating random pitches snippet
Le mardi 13 juin 2023 à 15:56 +0200, Stefan Thomas a écrit : > Dear community, > I discovered the snippet that lets you generate random pitches in Lilypond. > How does Lilypond "know" what are the lowest, what are the highest pitches? > How could I change that? Which snippet are you talking about? signature.asc Description: This is a digitally signed message part
question to generating random pitches snippet
Dear community, I discovered the snippet that lets you generate random pitches in Lilypond. How does Lilypond "know" what are the lowest, what are the highest pitches? How could I change that? Thanks for Your help Stefan