Permalink
Cannot retrieve contributors at this time
| Engine_Kyber : CroneEngine { | |
| var <synth; | |
| *new { arg context, doneCallback; | |
| ^super.new(context, doneCallback); | |
| } | |
| alloc { | |
| SynthDef(\Convolution2L, { | |
| arg in, out, kernel, trigger=0.0, framesize=2048, crossfade=1.0; | |
| var sig = { | |
| Convolution2L.ar(SoundIn.ar([0, 1]), | |
| kernel, | |
| trigger, | |
| framesize, | |
| crossfade | |
| ); | |
| }; | |
| Out.ar(out, sig); | |
| }).add; | |
| context.server.sync; | |
| synth = Synth.new(\Convolution2L, [ | |
| \out, context.out_b.index, | |
| \kernel, | |
| \trigger, 0.0, | |
| \framesize, 2048, | |
| \crossfade, 1.0, | |
| context.xg); | |
| this.addCommand("kernel", "f", {|msg| | |
| synth.set(\kernel, msg[1]); | |
| }); | |
| this.addCommand("trigger", "f", {|msg| | |
| synth.set(\trigger, msg[1]); | |
| }); | |
| this.addCommand("framesize", "f", {|msg| | |
| synth.set(\framesize, msg[1]); | |
| }); | |
| this.addCommand("crossfade", "f", {|msg| | |
| synth.set(\crossfade, msg[1]); | |
| }); | |
| free { | |
| synth.free; | |
| } | |
| } |