audio

@audio/defeedback1.4.0

Adaptive feedback suppression

Adaptive feedback suppression — umbrella for @audio/defeedback-* atoms (analyzer, tracker, notch bank)

Status
calibrated
Updated
Family
3 packages under it: analyzer, notchbank, tracker
Plugin
defeedback, effect, streaming, 3 parameters
Category
repair
Licence
MIT
Dependencies
5 packages, all permissive: MIT
Downloads
2,376 last month
Tests
at least 10 in audiojs/defeedback's CI, passed at d7bb02a,

Listen

// "Florence Nightingale, 1890" by Wellcome Library, CC BY-SA 3.0, archive.org/details/FlorenceNightingale2ndRendition1890GreetingsToTheDearOldComradesOf
audio('/samples/historic/florence-nightingale.mp3').defeedback()

// "Florence Nightingale, 1890" by Wellcome Library, CC BY-SA 3.0, archive.org/details/FlorenceNightingale2ndRendition1890GreetingsToTheDearOldComradesOf

Parameters

  • effect
  • streaming
notches
12
1 to 24
Q
30
10 to 100
strength
1
0 to 1

Adaptive feedback (howling) suppression — live-sound AFS class, zero-latency direct path.

Package What
@audio/defeedback-analyzer spectral peaks + PNPR/PHPR howl criteria, parabolic freqs, relational harmonic gate (Waterschoot & Moonen 2011)
@audio/defeedback-tracker persistence/stability/growth gating — the music discriminator
@audio/defeedback-notchbank ≤12 pooled narrow IIR cuts, click-free coefficient morphing, deepen-on-redeploy

The umbrella exports a streaming factory: defeedback({fs, strength}) → {process(chunk), notches()}. The audio path is pure IIR notches (0 samples latency); detection runs on the post-notch signal in parallel, so an insufficient notch deepens itself. Its cfg, [Q, dB cut per deploy, notches in use], may change between calls (process reads it each call): a new Q morphs every notch to its new shape over the bank's ramp, a new cut applies to the deploys after it, and slots past the count in use morph flat and go; the audio.js processor's Q, strength and notches are live so. Nothing is allocated while it runs.

Verified by tests: a growing howl over music is suppressed ≥12 dB while the music stays ±1 dB; harmonic-rich tones deploy zero notches; and a closed electro-acoustic loop simulation (resonant room, loop gain > 1) runs away without the suppressor and stays bounded with it inline.

Design notes: detection must catch the howl pre-saturation (a clipped howl grows harmonics and reads as musical — same physics limits every AFS). Alpha Labs DeFeedback-class ML suppression (speech-trained model) is a different lane — see @audio/neural.