Jump to content

Recommended Posts

I wonder if it's possible to evaluate a function (that has a seed argument) a set number of times (using gen-loop) with a predefined, custom seed list applied to the function. Something that I'm trying to achieve in the example below. Thank you!

 

(setf seeds (vector-round 1 100 (gen-white-noise 8 :seed 13)))

(setf rhythm (gen-loop 8 (euclidean-rhythm 16 4 16 's :type 2 :seed seeds)))


   
 

Link to post
Share on other sites

like that? should work...

it "loops" x-times (depends on length of seeds-list) and collect the rhythms...

 

(setf seeds (vector-round 1 100 (gen-white-noise 8 :seed 13)))


(setf rhythm (loop for i in seeds 
               collect (euclidean-rhythm 16 4 16 's :type 2 :seed i)))

 

 

perhaps there is an OPMO-solution, this is LISP

Link to post
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