Skip to main content

Module bands

Module bands 

Source

Structs§

BandFloor
A filter cannot report an onset faster than its own, so a caller subtracts this.
BandTrack
Bands
Prune
eps_db over LEAST_PRUNE_DB; floor_db under 0, against each band’s own peak.
PrunedBand
PrunedBands
rate_hz is the source rate a knot’s index counts at.
Smoothing
hz: None is the band’s own ERB, capped at a quarter of the decimated rate.

Constants§

BAND_COUNT
DECIMATED_HZ
Under the 2-3 ms gap-detection limit, a hundredth of the samples it came from.
FIRST_CAM
1 to 40 Cam is 26 Hz to 16.7 kHz.
HIGHEST_CENTRE_OF_RATE
LEAST_PRUNE_DB
Under this a bound is finer than the tens of dB a level spans hold in an f64, so no evaluated error could certify it: a correctness limit, not a cost one.
PRUNED_MODEL

Functions§

analyze
cam
One Cam is one filter width along the cochlea.
erb_hz
Glasberg and Moore’s auditory filter width in Hz.
hz_at_cam
least_rate_hz
pruned
smoothed

Type Aliases§

Knot
A source sample’s index from the read’s start, and the level there in dB.