|
|
|
@ -20,7 +20,6 @@ FluidBufNMF : UGen {
|
|
|
|
|
|
|
|
|
|
|
|
*process { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, bases, basesMode = 0, activations, actMode = 0, components = 1, iterations = 100, windowSize = 1024, hopSize = -1, fftSize = -1, windowType = 0, randomSeed = -1, action|
|
|
|
|
*process { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, bases, basesMode = 0, activations, actMode = 0, components = 1, iterations = 100, windowSize = 1024, hopSize = -1, fftSize = -1, windowType = 0, randomSeed = -1, action|
|
|
|
|
|
|
|
|
|
|
|
|
var synth;
|
|
|
|
|
|
|
|
source = source.asUGenInput;
|
|
|
|
source = source.asUGenInput;
|
|
|
|
destination = destination.asUGenInput;
|
|
|
|
destination = destination.asUGenInput;
|
|
|
|
bases = bases.asUGenInput;
|
|
|
|
bases = bases.asUGenInput;
|
|
|
|
@ -32,9 +31,8 @@ FluidBufNMF : UGen {
|
|
|
|
bases = bases ? -1;
|
|
|
|
bases = bases ? -1;
|
|
|
|
activations = activations ? -1;
|
|
|
|
activations = activations ? -1;
|
|
|
|
|
|
|
|
|
|
|
|
synth = {FluidBufNMF.kr(source, startFrame, numFrames, startChan, numChans, destination, bases, basesMode, activations, actMode, components, iterations, windowSize, hopSize, fftSize, doneAction: Done.freeSelf)}.play(server);
|
|
|
|
forkIfNeeded{
|
|
|
|
|
|
|
|
{FluidBufNMF.kr(source, startFrame, numFrames, startChan, numChans, destination, bases, basesMode, activations, actMode, components,iterations, windowSize, hopSize, fftSize, doneAction: Done.freeSelf)}.play(server).waitForFree;
|
|
|
|
synth.waitForFree({ forkIfNeeded{
|
|
|
|
|
|
|
|
server.sync;
|
|
|
|
server.sync;
|
|
|
|
if (destination != -1) {
|
|
|
|
if (destination != -1) {
|
|
|
|
destination = server.cachedBufferAt(destination);
|
|
|
|
destination = server.cachedBufferAt(destination);
|
|
|
|
@ -52,6 +50,6 @@ FluidBufNMF : UGen {
|
|
|
|
server.sync;
|
|
|
|
server.sync;
|
|
|
|
} {activations = nil};
|
|
|
|
} {activations = nil};
|
|
|
|
action.value(destination, bases, activations);
|
|
|
|
action.value(destination, bases, activations);
|
|
|
|
}});
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|