feat: extensions update
This commit is contained in:
@ -1,9 +1,21 @@
|
||||
SynthUtils {
|
||||
*playChord {
|
||||
arg synthName, freqs=#[440], args=#[], outName = 0, groupName = Server.default.defaultGroup;
|
||||
freqs.do(
|
||||
{
|
||||
|freq|
|
||||
Synth(synthName, args ++ [freq: freq, out: outName], groupName);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
*playChordGated {
|
||||
|synth, time, freqs=#[], args=#[]|
|
||||
r{
|
||||
arg synthName, time, freqs=#[], args=#[], outName = 0, groupName = Server.default.defaultGroup;
|
||||
r {
|
||||
var synths = Array.fill(127, nil);
|
||||
freqs.do({|freq, i| synths[i] = Synth(synth, args ++ [freq: freq] ++ [release: time])});
|
||||
freqs.do({
|
||||
|freq, i|
|
||||
synths[i] = Synth(synthName, args ++ [freq: freq] ++ [gate: 1, release: time, out: outName], groupName)});
|
||||
time.wait;
|
||||
synths.do({|item, i| synths[i].set(\gate, 0)});
|
||||
}.play;
|
||||
|
||||
@ -3,7 +3,7 @@ Track : Fadable {
|
||||
/*
|
||||
TODO: don't instanciate if name already exist ?
|
||||
*/
|
||||
var out, <group, <groupFX, <groupSynth, <track, trackFX, busTrack, busFX, level;
|
||||
var out, <group, <groupFX, <groupSynth, <track, <trackFX, busTrack, busFX, level;
|
||||
|
||||
*new {
|
||||
|out|
|
||||
|
||||
Reference in New Issue
Block a user