@ -1,43 +1,43 @@
FluidBufScale : FluidBufProcessor {
* kr { | source , startFrame = 0 , numFrames = - 1 , startChan = 0 , numChans = - 1 , destination , inputLow = 0 , inputHigh = 1 , outputLow = 0 , outputHigh = 1 , trig = 1 , blocking = 1 |
* kr { | source , startFrame = 0 , numFrames = - 1 , startChan = 0 , numChans = - 1 , destination , inputLow = 0 , inputHigh = 1 , outputLow = 0 , outputHigh = 1 , clipping = 0 , trig = 1 , blocking = 1 |
source = source . asUGenInput ;
destination = destination . asUGenInput ;
source . isNil . if { " FluidBufScale: Invalid source buffer " . throw } ;
destination . isNil . if { " FluidBufScale: Invalid destination buffer " . throw } ;
^ FluidProxyUgen . kr ( \FluidBufScaleTrigger , - 1 , source , startFrame , numFrames , startChan , numChans , destination , inputLow , inputHigh , outputLow , outputHigh , trig, blocking ) ;
^ FluidProxyUgen . kr ( \FluidBufScaleTrigger , - 1 , source , startFrame , numFrames , startChan , numChans , destination , inputLow , inputHigh , outputLow , outputHigh , clipping, trig, blocking ) ;
}
* process { | server , source , startFrame = 0 , numFrames = - 1 , startChan = 0 , numChans = - 1 , destination , inputLow = 0 , inputHigh = 1 , outputLow = 0 , outputHigh = 1 , freeWhenDone = true , action |
* process { | server , source , startFrame = 0 , numFrames = - 1 , startChan = 0 , numChans = - 1 , destination , inputLow = 0 , inputHigh = 1 , outputLow = 0 , outputHigh = 1 , clipping = 0 , freeWhenDone = true , action |
source = source . asUGenInput ;
destination = destination . asUGenInput ;
source . isNil . if { " FluidBufScale: Invalid source buffer " . throw } ;
destination . isNil . if { " FluidBufScale: Invalid destination buffer " . throw } ;
^ this . new (
server , nil , [ destination ]
) . processList (
[ source , startFrame , numFrames , startChan , numChans , destination , inputLow , inputHigh , outputLow , outputHigh , 0 ] , freeWhenDone , action
[ source , startFrame , numFrames , startChan , numChans , destination , inputLow , inputHigh , outputLow , outputHigh , clipping , 0 ] , freeWhenDone , action
) ;
}
* processBlocking { | server , source , startFrame = 0 , numFrames = - 1 , startChan = 0 , numChans = - 1 , destination , inputLow = 0 , inputHigh = 1 , outputLow = 0 , outputHigh = 1 , freeWhenDone = true , action |
* processBlocking { | server , source , startFrame = 0 , numFrames = - 1 , startChan = 0 , numChans = - 1 , destination , inputLow = 0 , inputHigh = 1 , outputLow = 0 , outputHigh = 1 , clipping = 0 , freeWhenDone = true , action |
source = source . asUGenInput ;
destination = destination . asUGenInput ;
source . isNil . if { " FluidBufScale: Invalid source buffer " . throw } ;
destination . isNil . if { " FluidBufScale: Invalid destination buffer " . throw } ;
^ this . new (
server , nil , [ destination ]
) . processList (
[ source , startFrame , numFrames , startChan , numChans , destination , inputLow , inputHigh , outputLow , outputHigh , 1 ] , freeWhenDone , action
[ source , startFrame , numFrames , startChan , numChans , destination , inputLow , inputHigh , outputLow , outputHigh , clipping , 1 ] , freeWhenDone , action
) ;
}
}