change to BufThresh to accept rect selection
parent
c663657c72
commit
e4607bf097
@ -1,31 +1,31 @@
|
|||||||
FluidBufThresh : UGen {
|
FluidBufThresh : UGen {
|
||||||
|
|
||||||
*new1 { |rate, source, destination, threshold = 0, trig = 1, blocking|
|
*new1 { |rate, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, threshold = 0, trig = 1, blocking|
|
||||||
|
|
||||||
source = source.asUGenInput;
|
source = source.asUGenInput;
|
||||||
destination = destination.asUGenInput;
|
destination = destination.asUGenInput;
|
||||||
|
|
||||||
source.isNil.if {"FluidBufThresh: Invalid source buffer".throw};
|
source.isNil.if {"FluidBufThresh: Invalid source buffer".throw};
|
||||||
destination.isNil.if {"FluidBufThresh: Invalid destination buffer".throw};
|
destination.isNil.if {"FluidBufThresh: Invalid destination buffer".throw};
|
||||||
^super.new1(rate, source, destination, threshold, trig, blocking);
|
^super.new1(rate, source, startFrame, numFrames, startChan, numChans, destination, threshold, trig, blocking);
|
||||||
}
|
}
|
||||||
|
|
||||||
*kr { |source, destination, threshold = 0, trig = 1, blocking = 1|
|
*kr { |source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, threshold = 0, trig = 1, blocking = 1|
|
||||||
^this.new1('control', source, destination, threshold, trig, blocking);
|
^this.new1('control', source, startFrame, numFrames, startChan, numChans, destination, threshold, trig, blocking);
|
||||||
}
|
}
|
||||||
|
|
||||||
*process { |server, source, destination, threshold = 0, action|
|
*process { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, threshold = 0, action|
|
||||||
^FluidNRTProcess.new(
|
^FluidNRTProcess.new(
|
||||||
server, this, action, [destination], blocking:1
|
server, this, action, [destination], blocking:1
|
||||||
).process(
|
).process(
|
||||||
source, destination, threshold
|
source, startFrame, numFrames, startChan, numChans, destination, threshold
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
*processBlocking { |server, source, destination, threshold = 0, action|
|
*processBlocking { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, threshold = 0, action|
|
||||||
^process(
|
^process(
|
||||||
source, destination, threshold
|
source, startFrame, numFrames, startChan, numChans, destination, threshold
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue