Jump to content

Freezing file


Recommended Posts

Hi everybody,

 

I'm working on different automatic composition projects, involving a lot of random use.

 

Is it possible to "freeze" a complete score, instead of fixing a seed for each "random generator" (rnd-order function) ?

 

I'd like to be in a "push button" situation, listening to a lot of versions and saving only the ones really working.

 

I can do that by saving the score as a pdf and exporting a midifile for each instance, but it would be wonderful to just save the opmo files for further processing.

 

Thanks for your help and suggestions.

 

Alain

Link to comment
Share on other sites

As Stephane also pointed out earlier, if you want to create a number of randomised solutions, but then later want to fix the result to one solution/seed of your choice, one way to do that is to always print the current seed, and in the end to simply replace your randomly generated seed with a seed of your choice. 

(progn 
  (setf seed (random 1000))
  (print seed)
  ;; replace seed below ultimately with seed generating a result you like
  (init-seed seed))

Best,

Torsten

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy