Examples

Where to find runnable code, by what you want to do.

The example gallery has one short program per task, each with its plot or audio player. The documentation build runs all of them.

The tutorials are longer notebooks that explain the signal processing behind each task and check every number they state.

Task

Gallery section

Tutorials

Loading and saving

Read and write, read in blocks

Quantisation and dither

Spectrograms

STFT, constant-Q

DFT and windows, STFT

Mel and MFCC

Mel, MFCC, chroma, perceptual scales

Cepstrum, mel and MFCC, Psychoacoustics and codecs

Pitch

YIN and pYIN, harmonics

Pitch, LPC and formants

Beats and onsets

Onsets, beats, tempogram

Onsets and tempo

Separation

Harmonic and percussive

Effects

Time stretch and pitch shift, compressor and limiter, silence and speech

Dynamics, Energy and VAD

Resampling

Quality settings, batches with threads

Sampling and aliasing, Resampling

Filters

Low-pass and high-pass, parametric EQ

FIR, IIR

Plotting

Waveform and spectrum, stereo, overview

Every tutorial plots its results

Going further

The Rust crate has the same tasks as examples: see the gallery chapter of its book.