I have a SC custom synth that has some parameters that receive arrays:
(
SynthDef(\fmous, {
//...
var ratios = \ratios.kr(#[1,1,1,1,1,1]);
//...
).add;
How would I declare and use these parameters in Tidal?
I tried
let ratios = pF "ratios"
d1 $ s "fmous" # ratios [1.0 2.0 3.0 4.0 5.0 6.0]
and got this error
<interactive>:115:10: error:
9 • Couldn't match expected type ‘Pattern Double’
8 with actual type ‘[t5]’
7 • In the first argument of ‘ratios’, namely
6 ‘[1.0 2.0 3.0 4.0 5.0 6.0]’
5 In the second argument of ‘(#)’, namely
4 ‘ratios [1.0 2.0 3.0 4.0 5.0 6.0]’
3 In the second argument of ‘($)’, namely
2 ‘n (segment 4 $ irand 7) # s "fmous"
1 # ratios [1.0 2.0 3.0 4.0 5.0 6.0]’
Do I need to declare it as a different type than pF
?
Should I put colons between elements in the array? I tried but got a different error.