First time here? Check out the FAQ!

Does the frequency parameter of GrainCloud 'know' when and new grain is generated?

0 votes
Or more precisely and to the point ... what capytalk expression should replace '????' in the frequency parameter of a GrainCloud so that each new grain is chosen from the list of numbers in parenthesis?

(???? nextRandomElementOf: #(60 63 65 67 69 70 72 )) nn

Using 'tick' with a very short timing gap gets the job done. But I'm guessing there is probably a more effecient and elegant solution.
asked Aug 23, 2017 in Capytalk & Smalltalk by mark-phillips (Practitioner) (490 points)

1 Answer

+1 vote

Your solution (with FreqJitter set to 0) is the best approach if you are using GrainCloud. Alternatively, you could generate your own grain cloud using an enveloped oscillator in combination with a Replicator.

answered Aug 23, 2017 by ssc (Savant) (70,330 points)