open_dspc library

Classes

Autocorr
CfftPlan
Reusable complex-input FFT plan (c2c) with internal native buffers.
Complex32List
A complex-valued vector backed by separate real and imaginary arrays.
Complex64List
A complex-valued vector backed by Float64x2 elements.
Conv
FftConvolver
Reusable FFT-based convolution context for repeated calls.
FFTStatic
One-shot static FFT utilities.
Filter
FindPeaksProperties
FindPeaksResult
Lpc
Polyfitter
Resample
Convenience API for one-off resampling operations.
Resampler
Reusable native resampler with cached context and buffers.
RfftPlan
Reusable real-input FFT plan (r2c) with internal native buffers.
SignalGenerator
SignalGenerator64
STFT
STFTFrames
Complex STFT output stored as contiguous frame-major real and imaginary bins.
STFTSpecFrames
Scalar STFT output stored as contiguous frame-major bins.

Enums

CoeffMode
ConvMode
CorrOutMode
LpcMethod
MelNorm
MelScale
ResamplingMethod
SpecMode
Output representation for scalar spectra.
StftWindow
Window shape applied to each STFT frame before the FFT.
WindowType
Supported scalar window functions for frame-based DSP operations.

Functions

applyWindow(Float32List input, {WindowType type = WindowType.hann, bool periodic = true}) → Float32List
Returns a new array containing input multiplied by a generated window.
applyWindowInPlace(Float32List input, {WindowType type = WindowType.hann, bool periodic = true}) → void
Multiplies input in place by a generated window.
blackmanWindow(int length, {bool periodic = true}) → Float32List
find_peaks(List<num> x, {Object? height, Object? threshold, double? distance, Object? prominence, Object? width, int? wlen, double rel_height = 0.5, Object? plateau_size}) → FindPeaksResult
Finds local maxima in a 1-D signal using the native peak finder.
frameToMel(Float32List input, {required int sr, int numMels = 80, double fmin = 0, double? fmax, MelScale scale = MelScale.htk, MelNorm norm = MelNorm.none}) → Float32List
generateWindow(int length, {WindowType type = WindowType.hann, bool periodic = true}) → Float32List
Returns a window of length for the selected type.
hammingWindow(int length, {bool periodic = true}) → Float32List
hannWindow(int length, {bool periodic = true}) → Float32List
multiplyWithWindow(Float32List input, Float32List window) → Float32List
Returns a new array containing input[n] * window[n].
multiplyWithWindowInPlace(Float32List input, Float32List window) → void
Multiplies input by window in place.
rectWindow(int length, {bool periodic = true}) → Float32List