First time here? Check out the FAQ!
x

Replicator with random values

0 votes
404 views
Hello, new on Kyma (paca), I would like to know if someone could tell me how to use replicator in the way I use .dup in Supercollider, for example with this line of code:

f={ [{SinOsc.ar(Rand(100,700),Rand(0,1),0.05)}.dup(30),{SinOsc.ar(Rand(100,800),Rand(0,1),0.05)}.dup(30)] }.play;

Which means, each time I execute the line code: 30 sine oscillators mixed into the left channel with, for each oscillator: a random frequency between 100 and 700 hz, a random phase between 0 and 1, and a volume of 0.05. The same in the right channel (with different values). Into Kyma 7 the "play;" could be replaced by a simple gate or trigger. I would be extremely happy if someone could send me a structure that would do exactly that in order to understand the logic of Kyma coding. Thanks a lot.

Also, what could be the easiest way to store and recall a current state of values (the one produced by all the Rand's), without using 60 or more !hotvalues and the preset object in the VCS layout?

Cheers
asked Jul 22, 2019 in Using Kyma by raphael-henard (120 points)
edited Jul 22, 2019 by raphael-henard

1 Answer

+1 vote

Here is a step by step example of one way to make what you've described using a Replicator. There are many other approaches one could take, including a Script, a TransformEventValues, or an OscillatorBank with SyntheticSpectrumFromArray, and more. Hope this is useful for a start.

answered Jul 23, 2019 by ssc (Savant) (128,160 points)
...