Global

Type Definitions

mfccsOptions

Properties:
Name Type Argument Default Description
minFreq number The minimum frequency to expect (TODO: create default val)
maxFreq number The maximum frequency to expect (TODO: create default val)
filterBanks number The number of filter banks to retrieve (TODO: create default val)
fft Array.<number> <optional>
FFT transformation data. If null, pulls from the analyzer
sampleRate number <optional>
sampleRate the sample rate of the data. Required if data is not null
toLinearMagnitude boolean <optional>
true Whether or not to convert the data to a linear magnitude scale (e.g., if the data being passed in is in decibels—as is the default data that comes back from VowelWorm.instance#getFFT). If this is set to false, the data will be mapped to Math.abs. Since this calls Math.log on the data, negative values will mess everything up. Granted, converting these to absolute values might _also_ mess everything up, but at least it will avoid NaN values. :-)