Implements a selection of spectrum-based onset slicers
Performs segmentation based on the difference between spectral frames.
The metric for calculating difference can be chosen from a curated selection, lending the algorithm toward slicing a broad range of musical materials.
The argument for metric
can be passed as an integer (see table below) which is modulatable, or as one of the following symbols: \power
, \hfc
, \flux
, \mkl
, \is
, \cosine
, \phase
, \wphase
, \complex
, or \rcomplex
.
Read more about FluidOnsetSlice on the learn platform.
in |
Audio-rate signal to slice | ||||||||||||||||||||
metric |
The metric used to derive a difference curve between spectral frames. It can be any of the following:
| ||||||||||||||||||||
threshold |
The thresholding of a new slice. Value ranges are different for each metric, from 0 upwards. Constraints
| ||||||||||||||||||||
minSliceLength |
The minimum duration of a slice in number of hopSize. Constraints
| ||||||||||||||||||||
filterSize |
The size of a smoothing filter that is applied on the novelty curve. A larger filter size allows for cleaner cuts on very sharp changes. Constraints
| ||||||||||||||||||||
frameDelta |
For certain metrics (HFC, SpectralFlux, MKL, Cosine), the distance does not have to be computed between consecutive frames. By default (0) it is, otherwise this sets the distance between the comparison window in samples. Constraints
| ||||||||||||||||||||
windowSize |
The window size. As sinusoidal estimation relies on spectral frames, we need to decide what precision we give it spectrally and temporally. For more information visit https://learn.flucoma.org/learn/fourier-transform/ | ||||||||||||||||||||
hopSize |
The window hop size. As sinusoidal estimation relies on spectral frames, we need to move the window forward. It can be any size, but low overlap will create audible artefacts. The -1 default value will default to half of windowSize (overlap of 2). | ||||||||||||||||||||
fftSize |
The inner FFT/IFFT size. It should be at least 4 samples long, at least the size of the window, and a power of 2. Making it larger allows an oversampling of the spectral precision. The -1 default value will default to windowSize. | ||||||||||||||||||||
maxFFTSize |
Set an explicit upper bound on the FFT size at object instantiation. The default of |