1
0
Files
scoobidules/extensions/SynthUtils/classes/utils.sc
2025-06-14 16:41:54 +02:00

11 lines
283 B
Python

SynthUtils {
*playChordGated {
|synth, time, freqs=#[], args=#[]|
r{
var synths = Array.fill(127, nil);
freqs.do({|freq, i| synths[i] = Synth(synth, args ++ [freq: freq] ++ [release: time])});
time.wait;
synths.do({|item, i| synths[i].set(\gate, 0)});
}.play;
}
}