11FluidBufNMF : FluidBufProcessor
22{
3- *kr {|source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , resynth, resynthMode = 0 , bases, basesMode = 0 , activations, actMode = 0 , components = 1 , iterations = 100 , windowSize = 1024 , hopSize = -1 , fftSize = -1 , trig = 1 , blocking = 0 |
3+ *kr {|source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , resynth, resynthMode = 0 , bases, basesMode = 0 , activations, actMode = 0 , components = 1 , iterations = 100 , seed = - 1 , windowSize = 1024 , hopSize = -1 , fftSize = -1 , trig = 1 , blocking = 0 |
44
55 source.isNil.if {"FluidBufNMF: Invalid source buffer" .throw};
66 resynth = resynth ? -1 ;
77 bases = bases ? -1 ;
88 activations = activations ? -1 ;
99
10- ^FluidProxyUgen .kr(\FluidBufNMFTrigger ,-1 ,source.asUGenInput, startFrame, numFrames, startChan, numChans, resynth.asUGenInput, resynthMode, bases.asUGenInput, basesMode, activations.asUGenInput, actMode, components, iterations, windowSize, hopSize, fftSize, fftSize, trig, blocking);
10+ ^FluidProxyUgen .kr(\FluidBufNMFTrigger ,-1 ,source.asUGenInput, startFrame, numFrames, startChan, numChans, resynth.asUGenInput, resynthMode, bases.asUGenInput, basesMode, activations.asUGenInput, actMode, components, iterations, seed, windowSize, hopSize, fftSize, fftSize, trig, blocking);
1111 }
1212
13- *process { |server, source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , resynth = -1 , resynthMode = 0 , bases = -1 , basesMode = 0 , activations = -1 , actMode = 0 , components = 1 , iterations = 100 , windowSize = 1024 , hopSize = -1 , fftSize = -1 ,freeWhenDone = true , action|
13+ *process { |server, source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , resynth = -1 , resynthMode = 0 , bases = -1 , basesMode = 0 , activations = -1 , actMode = 0 , components = 1 , iterations = 100 , seed = - 1 , windowSize = 1024 , hopSize = -1 , fftSize = -1 ,freeWhenDone = true , action|
1414
1515 source.isNil.if {"FluidBufNMF: Invalid source buffer" .throw};
1616 resynth = resynth ? -1 ;
@@ -19,10 +19,10 @@ FluidBufNMF : FluidBufProcessor
1919
2020 ^this .new(
2121 server,nil ,[resynth, bases, activations].select{|x| x!= -1 }
22- ).processList([source, startFrame, numFrames, startChan, numChans, resynth, resynthMode, bases, basesMode, activations, actMode, components,iterations, windowSize, hopSize, fftSize, fftSize, 0 ],freeWhenDone,action);
22+ ).processList([source, startFrame, numFrames, startChan, numChans, resynth, resynthMode, bases, basesMode, activations, actMode, components, iterations, seed , windowSize, hopSize, fftSize, fftSize, 0 ],freeWhenDone,action);
2323 }
2424
25- *processBlocking { |server, source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , resynth = -1 , resynthMode = 0 , bases = -1 , basesMode = 0 , activations = -1 , actMode = 0 , components = 1 , iterations = 100 , windowSize = 1024 , hopSize = -1 , fftSize = -1 ,freeWhenDone = true , action|
25+ *processBlocking { |server, source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , resynth = -1 , resynthMode = 0 , bases = -1 , basesMode = 0 , activations = -1 , actMode = 0 , components = 1 , iterations = 100 , seed = - 1 , windowSize = 1024 , hopSize = -1 , fftSize = -1 ,freeWhenDone = true , action|
2626
2727 source.isNil.if {"FluidBufNMF: Invalid source buffer" .throw};
2828 resynth = resynth ? -1 ;
@@ -31,7 +31,7 @@ FluidBufNMF : FluidBufProcessor
3131
3232 ^this .new(
3333 server,nil ,[resynth, bases, activations].select{|x| x!= -1 }
34- ).processList([source, startFrame, numFrames, startChan, numChans, resynth, resynthMode, bases, basesMode, activations, actMode, components,iterations, windowSize, hopSize, fftSize, fftSize, 1 ],freeWhenDone,action);
34+ ).processList([source, startFrame, numFrames, startChan, numChans, resynth, resynthMode, bases, basesMode, activations, actMode, components, iterations, seed , windowSize, hopSize, fftSize, fftSize, 1 ],freeWhenDone,action);
3535 }
3636}
3737FluidBufNMFTrigger : FluidProxyUgen {}
0 commit comments