microspectrogram

Crates.iomicrospectrogram
lib.rsmicrospectrogram
version0.1.0
sourcesrc
created_at2023-06-04 04:45:32.208669
updated_at2023-06-04 04:45:32.208669
descriptionA simple `no_std` library for computing spectrograms.
homepage
repositoryhttps://gitlab.com/spadarian/microspectrogram
max_upload_size
id881996
size31,466
José Padarian (spadarian)

documentation

README

Microspectrogram

A simple no_std library for computing spectrograms.

Example visualisation of a spectrogram

Implementation details

  • The FFT is performed by the microfft create. It uses the Radix-2 FFT algorithm so the number of samples is limited to powers of 2.
  • It follows the spectrogram implementation of the scipy python library.
  • This library implements the minimum requirements for one of my projects so many features are missing (e.g. windows, scaling functions, detrending function, etc). At the moment, it is equivalent to the default parameters of the scipy implementation. Merge requests are welcome.

Usage

See examples/spectrogram.rs for the complete example that generates the spectrogram image above.

Commit count: 9

cargo fmt