lilypond-user
[Top][All Lists]
Advanced

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

Re: how to repeat a scheme function that creates a Score


From: Jeff Olson
Subject: Re: how to repeat a scheme function that creates a Score
Date: Wed, 6 Apr 2022 23:54:19 -0600
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

On 4/5/2022 11:58 PM, Aaron Hill wrote:
On 2022-04-05 10:40 pm, Jeff Olson wrote:
Question (b):

My secondary question is very simple.  How do you set the seed for
scheme's "random" function (used in my gen-music.ily).  I'd like to
get the repeatability of a pseudo-random number generator.

;;;;
(set! *random-state* (seed->random-state 42))
;;;;

Review the Guile documentation [1]:

[1]: https://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Random.html#Random


-- Aaron Hill

Thanks, Aaron, for answering the ultimate question [2].

[2] https://en.wikipedia.org/wiki/42_(number)

Jeff




reply via email to

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