Skip to main content

Module peaks

Module peaks 

Source
Expand description

Peak extraction and binary peak-file utilities for waveform display.

Structs§

GetPeaksOptions
Query options for reading peaks from a binary peaks file.
PeakWindow
A single peak window with maximum and minimum sample amplitude.
PeaksData
Peak data for all channels at a fixed window size.

Enums§

PeaksError
Error type for peak extraction and binary peak-file IO.

Functions§

extract_peaks_from_audio
Decode an audio file directly into in-memory peaks.
get_all_peaks
Read all channels and all peaks from a binary peaks file.
get_peaks
Read all peaks from a binary peaks file.
get_peaks_in_range
Read peaks from a binary peaks file for a specific time range in seconds.
write_peaks
Decode an audio file and write its peaks to a binary file.