diff --git a/DSP/synths/distorted_sin.scd b/DSP/synths/distorted_sin.scd index 017a97a..0104198 100644 --- a/DSP/synths/distorted_sin.scd +++ b/DSP/synths/distorted_sin.scd @@ -1,7 +1,7 @@ ( name: 'distorted_sin', func: { - | freq, gate | + | freq | var sig = SinOsc.ar(freq, \phase.kr(2pi).mod(2pi)); //4.do { sig = HPF.ar(sig, 60); }; //4.do { sig = LPF.ar(sig, \lpf.kr(100)); }; diff --git a/NodeDictionary/makeBufferProcessingNdef.sc b/NodeDictionary/makeBufferProcessingNdef.sc index 5ebbf67..bdd1c8c 100644 --- a/NodeDictionary/makeBufferProcessingNdef.sc +++ b/NodeDictionary/makeBufferProcessingNdef.sc @@ -1,21 +1,20 @@ + NodeDictionary { - makeBufferProcessingNdef { - | name | + makeBufferProcessingNdef { + | name | - var internalName = if(name.isNil, {this[\name]}, {name}); + var internalName = if(name.isNil, {this[\name]}, {name}); - Ndef(internalName, { - var signal, dry, gate; + Ndef(internalName, { + var signal, dry, gate; - gate = \gate.tr(0); + gate = \envGate.kr(0); + dry = In.ar(\in.kr(0), this[\inChannels] ? 1); + signal = SynthDef.wrap( + func: this[\func], + ); + signal = LinXFade2.ar(dry, signal, \drywet.kr(1)); - dry = In.ar(\in.kr(0), this[\inChannels] ? 1); - signal = SynthDef.wrap( - func: this[\func], - ); - signal = LinXFade2.ar(dry, signal, \drywet.kr(1)); - - this.processSig(signal, gate); - }); - } + this.processSig(signal, gate); + }); + } } diff --git a/NodeDictionary/makeBufferProcessingSynthDef.sc b/NodeDictionary/makeBufferProcessingSynthDef.sc index 5350e21..6b8fc8c 100644 --- a/NodeDictionary/makeBufferProcessingSynthDef.sc +++ b/NodeDictionary/makeBufferProcessingSynthDef.sc @@ -3,8 +3,7 @@ SynthDef(this[\name], { var signal, dry, gate; - gate = \gate.tr(0); - + gate = \envGate.kr(0); dry = In.ar(\in.kr(0), this[\inChannels] ? 1); signal = SynthDef.wrap( func: this[\func], diff --git a/keyboard-controller/hidctrl.scd b/keyboard-controller/hidctrl.scd index a7bbdb5..db0b507 100644 --- a/keyboard-controller/hidctrl.scd +++ b/keyboard-controller/hidctrl.scd @@ -1,3 +1,4 @@ +( ~hidCtrl = ( defName: \hidCtrl, // Array of HIDInfo objects @@ -27,7 +28,7 @@ if(self.connected.size > 0) { self.connected.do { |hid| hid.close }; self.connected.clear; - } + }; HIDdef(self.defName).free; }, @@ -42,3 +43,4 @@ }); } ); +)