Skip to content

Commit

Permalink
class library: Monitor: take over new fadeTime for releasing old synths
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Rohrhuber committed Nov 24, 2013
1 parent 315e605 commit eab3bfa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion SCClassLibrary/JITLib/ProxySpace/InBus.sc
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,16 @@ Monitor {
synthArgs = [ins, outs, amps, fadeTimes].asControlInput.flop;

if(this.isPlaying) {
if(multi.not) { this.stopToBundle(bundle) }
if(multi.not) {
if(argFadeTime.notNil) {
argFadeTime = argFadeTime.asArray;
synthIDs.do { |id, i|
bundle.add([15, id, "gate", argFadeTime.wrapAt(i).neg])
}
} {
bundle.add([15, group.nodeID, "gate", 0]);
}
}
} {
this.newGroupToBundle(bundle, inGroup, addAction)
};
Expand Down

0 comments on commit eab3bfa

Please sign in to comment.