Skip to main content

Module analysis

Module analysis 

Source
Expand description

Platform-independent audio analysis helpers.

Structs§

AnalysisMetadata
Metadata needed to interpret one live Analysis snapshot.
AnalysisUnavailable
An Analyser has no active source its owner can safely expose.
AudioAnalyser
LiveAnalysisOptions
Bounded scheduling options for reactive live Analysis.
LiveAnalysisSnapshot
Immutable values collected together from one Analyser.
WaveformSelection
An ordered source-time interval within an audio timeline.

Enums§

AnalysisDomain

Functions§

downsample_peaks
Reduce amplitude peaks to at most buckets values, preserving the maximum value from each source window.
peak_amplitude
Return the largest distance from Web Audio’s unsigned silence value (128), normalized to the full u8 range.
rms_level
Return normalized root mean square amplitude for one time-domain window.
trim_interleaved_pcm
Trim a source-time interval from interleaved PCM without splitting channel frames.
use_live_analysis
Reactively collect complete, interpretable snapshots from an optional Analyser.