Skip to content
pubscout

fftea

1.5.0+1, released 2 years ago by an unverified publisher

Fast Fourier Transform library supporting inputs of any size, with STFT and convolution tools.

WASM-ready
$ flutter pub add fftea
Source repository

What it does

Computes Fast Fourier Transforms (FFT) for real or complex arrays of any size, converting signals between the time domain and frequency domain. It also provides related utilities such as windowing functions, Short-Time Fourier Transform (STFT), inverse FFT, and convolution.

AI-written summary of version 1.5.0+1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to filter or synthesize audio signals in your app.
  • You are computing a spectrogram for audio analysis or AI models.
  • You need custom audio filtering or convolution operations.

Skip it when

  • You do not need signal processing or frequency analysis in your application.

Strengths

  • Supports FFT of any input size, not just powers of two.
  • Highly efficient implementation utilizing Float64x2List and SIMD optimizations.
  • Includes utilities for STFT, audio resampling, and windowing functions.

Weaknesses

  • Requires manual array management and understanding of signal processing concepts.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:fftea/fftea.dart';

List<double> myData = ...;

final fft = FFT(myData.length);
final freq = fft.realFft(myData);

Works with

Packages commonly used together with fftea: ones it builds on, ones built on it, and its own family.