Hi All,
Can we put array a[0], a[1], a[2], a[3] into a SinOsc for FM Synthesis?
Let say a=[2, 3, 4, 5]
in FM synthesis, we have 4 parameters which is
Carrier Frequency (carrFreq) --> a[0]
Carrier Amplitude (carrAmp) --> a[1]
Modulator Frequency (modFreq) --> a[2]
Modulator Amplitude (modAmp) --> a[3]
(
{
arg modFreq = a[2], modAmp = a[3], amp = a[1];
var carrier, modulator;
modulator = SinOsc.ar(freq:
modFreq, mul: modAmp);
SinOsc.ar(freq: a[0] + modulator, mul: a[1];);
}.play
)