bufthresh and bufscale now with verbose parameter names (and corrected an error in the examples of the latter)
parent
b6fdc78d12
commit
c663657c72
@ -1,31 +1,31 @@
|
||||
FluidBufScale : UGen {
|
||||
|
||||
*new1 { |rate, source, destination, inlo, inhi, outlo, outhi, trig = 1, blocking|
|
||||
*new1 { |rate, source, destination, inputLow, inputHigh, outputLow, outputHigh, trig = 1, blocking|
|
||||
|
||||
source = source.asUGenInput;
|
||||
destination = destination.asUGenInput;
|
||||
|
||||
source.isNil.if {"FluidBufScale: Invalid source buffer".throw};
|
||||
destination.isNil.if {"FluidBufScale: Invalid destination buffer".throw};
|
||||
^super.new1(rate, source, destination, inlo, inhi, outlo, outhi, trig, blocking);
|
||||
^super.new1(rate, source, destination, inputLow, inputHigh, outputLow, outputHigh, trig, blocking);
|
||||
}
|
||||
|
||||
*kr { |source, destination, inlo = 0 , inhi = 1, outlo = 0, outhi = 1, trig = 1, blocking = 1|
|
||||
^this.new1('control', source, destination, inlo, inhi, outlo, outhi, trig, blocking);
|
||||
*kr { |source, destination, inputLow = 0 , inputHigh = 1, outputLow = 0, outputHigh = 1, trig = 1, blocking = 1|
|
||||
^this.new1('control', source, destination, inputLow, inputHigh, outputLow, outputHigh, trig, blocking);
|
||||
}
|
||||
|
||||
*process { |server, source, destination, inlo = 0 , inhi = 1, outlo = 0, outhi = 1, action|
|
||||
*process { |server, source, destination, inputLow = 0 , inputHigh = 1, outputLow = 0, outputHigh = 1, action|
|
||||
^FluidNRTProcess.new(
|
||||
server, this, action, [destination], blocking:1
|
||||
).process(
|
||||
source, destination, inlo, inhi, outlo, outhi
|
||||
source, destination, inputLow, inputHigh, outputLow, outputHigh
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
*processBlocking { |server, source, destination, inlo = 0 , inhi = 1, outlo = 0 , outhi = 1, action|
|
||||
*processBlocking { |server, source, destination, inputLow = 0 , inputHigh = 1, outputLow = 0 , outputHigh = 1, action|
|
||||
^process(
|
||||
source, destination, inlo, inhi, outlo, outhi
|
||||
source, destination, inputLow, inputHigh, outputLow, outputHigh
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,31 +1,31 @@
|
||||
FluidBufThresh : UGen {
|
||||
|
||||
*new1 { |rate, source, destination, thresh = 0, trig = 1, blocking|
|
||||
*new1 { |rate, source, destination, threshold = 0, trig = 1, blocking|
|
||||
|
||||
source = source.asUGenInput;
|
||||
destination = destination.asUGenInput;
|
||||
|
||||
source.isNil.if {"FluidBufThresh: Invalid source buffer".throw};
|
||||
destination.isNil.if {"FluidBufThresh: Invalid destination buffer".throw};
|
||||
^super.new1(rate, source, destination, thresh, trig, blocking);
|
||||
^super.new1(rate, source, destination, threshold, trig, blocking);
|
||||
}
|
||||
|
||||
*kr { |source, destination, thresh = 0, trig = 1, blocking = 1|
|
||||
^this.new1('control', source, destination, thresh, trig, blocking);
|
||||
*kr { |source, destination, threshold = 0, trig = 1, blocking = 1|
|
||||
^this.new1('control', source, destination, threshold, trig, blocking);
|
||||
}
|
||||
|
||||
*process { |server, source, destination, thresh = 0, action|
|
||||
*process { |server, source, destination, threshold = 0, action|
|
||||
^FluidNRTProcess.new(
|
||||
server, this, action, [destination], blocking:1
|
||||
).process(
|
||||
source, destination, thresh
|
||||
source, destination, threshold
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
*processBlocking { |server, source, destination, thresh = 0, action|
|
||||
*processBlocking { |server, source, destination, threshold = 0, action|
|
||||
^process(
|
||||
source, destination, thresh
|
||||
source, destination, threshold
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue