A simple beginner question: I have an array (~synths) with 10 instances of a synth. I need to send to all of them the same message. How can I send a .set message to ALL the instances of an array?
I have tried this:
but I get an error message (“Message “set” not understood”). Ok, I’m a beginner so I’ve clearly used a wrong syntax.
Then I’ve tried this:
~synths[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].set(\freq, 100);
but only the latest allocated instance actually changed its frequency according to my message. Nothing happens to the others.
This seems the only functioning method:
~synths.set(\freq, 100); ~synths.set(\freq, 100); ~synths.set(\freq, 100); ~synths.set(\freq, 100); //...and so on
but it seems quite long to me, there should be a smarter way to do that!
Can someone help me?
Thanks you all!