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