slicers: add enums for algorithms (#86)

nix
gianlucaelia 4 years ago committed by GitHub
parent d776b25ed5
commit e83c7864c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,7 +1,15 @@
FluidNoveltySlice : FluidRTUGen {
const <spectrum = 0;
const <mfcc = 1;
const <chroma = 2;
const <pitch = 3;
const <loudness = 4;
*ar { arg in = 0, algorithm = 0, kernelSize = 3, threshold = 0.8, filterSize = 1, minSliceLength = 2, windowSize = 1024, hopSize = -1, fftSize = -1, maxFFTSize = 16384, maxKernelSize = 101, maxFilterSize = 100;
^this.multiNew('audio', in.asAudioRateInput(this), algorithm, kernelSize, threshold, filterSize, minSliceLength, windowSize, hopSize, fftSize, maxFFTSize, maxKernelSize, maxFilterSize)
}
checkInputs {
if(inputs.at(8).rate != 'scalar') {
^(": maxFFTSize cannot be modulated.");

@ -1,4 +1,16 @@
FluidOnsetSlice : FluidRTUGen {
const <power = 0;
const <hfc = 1;
const <flux = 2;
const <mkl = 3;
const <is = 4;
const <cosine = 5;
const <phase = 6;
const <wphase = 7;
const <complex = 8;
const <rcomplex = 9;
*ar { arg in = 0, metric = 0, threshold = 0.5, minSliceLength = 2, filterSize = 5, frameDelta = 0, windowSize = 1024, hopSize = -1, fftSize = -1, maxFFTSize = 16384;
^this.multiNew('audio', in.asAudioRateInput(this), metric, threshold, minSliceLength, filterSize, frameDelta, windowSize, hopSize, fftSize, maxFFTSize)
}

Loading…
Cancel
Save