STFT class

Performs STFTs (Short-time Fourier Transforms).

STFT breaks up the input into overlapping chunks, applies an optional window, and runs an FFT. This is also known as a spectrogram.

Constructors

STFT(int chunkSize, [Float64List? _win])
Constructs an STFT object of the given size, with an optional windowing function.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The size of the chunks this STFT breaks the input into.
no setter

Methods

flush(dynamic reportChunk(Float64x2List)) → void
Runs STFT on any remaining input in the buffer.
frequency(int index, double samplesPerSecond) double
Returns the frequency that the given index of FFT output represents.
indexOfFrequency(double freq, double samplesPerSecond) double
Returns the index in the FFT output that corresponds to the given frequency. This is the inverse of frequency.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(List<double> input, dynamic reportChunk(Float64x2List), [int chunkStride = 0]) → void
Runs STFT on input.
runAndCopy(List<double> input, [int chunkStride = 0]) List<Float64x2List>
Runs STFT on input.
stream(List<double> input, dynamic reportChunk(Float64x2List), [int chunkStride = 0]) → void
Runs STFT on input.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited