bufscale has rect input too - with modified bufstats weighing examples accordingly
parent
e4607bf097
commit
574ddcd0fe
@ -1,31 +1,31 @@
|
||||
FluidBufScale : UGen {
|
||||
|
||||
*new1 { |rate, source, destination, inputLow, inputHigh, outputLow, outputHigh, trig = 1, blocking|
|
||||
*new1 { |rate, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, inputLow = 0, inputHigh = 1, outputLow = 0, outputHigh = 1, 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, inputLow, inputHigh, outputLow, outputHigh, trig, blocking);
|
||||
^super.new1(rate, source, startFrame, numFrames, startChan, numChans, destination, inputLow, inputHigh, outputLow, outputHigh, 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);
|
||||
*kr { |source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, inputLow = 0, inputHigh = 1, outputLow = 0, outputHigh = 1, trig = 1, blocking = 1|
|
||||
^this.new1('control', source, startFrame, numFrames, startChan, numChans, destination, inputLow, inputHigh, outputLow, outputHigh, trig, blocking);
|
||||
}
|
||||
|
||||
*process { |server, source, destination, inputLow = 0 , inputHigh = 1, outputLow = 0, outputHigh = 1, action|
|
||||
*process { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, inputLow = 0, inputHigh = 1, outputLow = 0, outputHigh = 1, action|
|
||||
^FluidNRTProcess.new(
|
||||
server, this, action, [destination], blocking:1
|
||||
).process(
|
||||
source, destination, inputLow, inputHigh, outputLow, outputHigh
|
||||
source, startFrame, numFrames, startChan, numChans, destination, inputLow, inputHigh, outputLow, outputHigh
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
*processBlocking { |server, source, destination, inputLow = 0 , inputHigh = 1, outputLow = 0 , outputHigh = 1, action|
|
||||
*processBlocking { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, inputLow = 0, inputHigh = 1, outputLow = 0, outputHigh = 1, action|
|
||||
^process(
|
||||
source, destination, inputLow, inputHigh, outputLow, outputHigh
|
||||
source, startFrame, numFrames, startChan, numChans, destination, inputLow, inputHigh, outputLow, outputHigh
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue