Packages359 in all
PluginsNo package by that name or for that. Try fewer words.
codecs49 packages
- decode
Decode audio data
decode: 24 packages
4.4.0, 24 packages
Decode audio data in node or browser
npm i @audio/decodeimport decode from '@audio/decode'; const { channelData, sampleRate } = await decode(anyAudioBuffer); - encode
Encode audio data
1.12.0, 15 packages
Encode audio data in node or browser
npm i @audio/encodeimport encode from '@audio/encode'; const buf = await encode.wav(channelData, { sampleRate: 44100 }); - midi
MIDI, notation, subtitles
1.0.4, 5 packages
MIDI, notation, subtitles
npm i @audio/midiimport { parse, write, render, musicxml, subtitle } from '@audio/midi' let smf = write(notes, { bpm: 120 }) // notes → SMF bytes let { notes, tempos, duration } = parse(smf) // SMF bytes → notes let { channelData, sampleRate } = render(smf) // SMF bytes → PCM, GM synth map …
- audio-type
Detect a buffer's audio type
2.8.0
Detect a buffer's audio type
npm i audio-typeimport readChunk from 'read-chunk'; // npm install read-chunk import audioType from 'audio-type'; var buffer = readChunk.sync('meow.wav', 0, 64); - pcm-convert
Convert PCM between formats
3.3.0
Convert PCM between formats
npm i pcm-convertimport convert, { parse, detect, stringify, sampleRate } from 'pcm-convert' // dtype conversion convert(new Float32Array([1, -1, 0.5]), 'int16')
analysis80 packages
- loudness
Loudness metering
1.3.0, 7 packages
Loudness metering: BS.1770-4 LUFS, true peak, LRA, ReplayGain, DR, speech contrast, sound labeling
npm i @audio/loudnessimport { lufs, truepeak, lra, replaygain, dr, speechContrast, sounds } from '@audio/loudness' lufs(channels, { fs: 48000 }) // integrated LUFS replaygain(channels, { fs: 48000 }) // { gain, lufs, peak } - measure
Acoustic & system measurement
1.1.5, 7 packages
Acoustic & system measurement: IR capture, response, latency
npm i @audio/measureimport { ir, latency, align, response, lossy, correct, snr, lsd } from '@audio/measure' import chirp from '@audio/synth-chirp' let sweep = chirp({ f0: 20, f1: 20000, duration: 1.5, fs }) let h = ir(recorded, { sweep, f0: 20, f1: 20000, fs, length: 1000 }) // impulse response … - spectral
Spectral features
spectral: 17 packages
1.3.1, 17 packages
Spectral features: centroid, spread, flatness, rolloff, flux, slope, crest, zcr
npm i @audio/spectral - pitch
Pitch detection
2.3.0, 8 packages
Pitch detection: YIN, pYIN, McLeod, HPS, cepstrum, SWIPE, autocorrelation, AMDF
npm i @audio/pitchimport { yin, mcleod } from '@audio/pitch' let fs = 44100 let frame = new Float32Array(2048) // fill from your audio source
- beat
Beat detection
beat: 5 packages
3.1.0, 5 packages
Beat detection: onset detection, tempo estimation, beat tracking
npm i @audio/beatimport { detect, onsets, tempo, beatTrack } from '@audio/beat' // full pipeline: onsets → tempo → beat grid let result = detect(samples, { fs: 44100 }) result.bpm // 120.2 … - mir
Music information retrieval
mir: 16 packages
1.2.0, 16 packages
Music information retrieval: chroma, chord, key; MIREX-parity roadmap
npm i @audio/mirimport { chroma, chord, key } from '@audio/mir' let c = chroma(samples, { fs: 44100 }) // Float32Array[12] let ch = chord(c) // 'C', 'Am', … let k = key(c) // { key: 'C major', scores: [...] } - auditory
Auditory filterbanks
1.0.2, 5 packages
Auditory filterbanks: bark, ERB, mel, gammatone, octave
npm i @audio/auditory - weighting
Frequency weighting filters
1.4.0, 7 packages
Frequency weighting filters: A, B, C, D, K/BS.1770, ITU-R 468, RIAA
npm i @audio/weighting
effects103 packages
- filter
Biquad, comb, ladder filters
filter: 16 packages
3.6.0, 16 packages
Biquad, comb, ladder filters
npm i @audio/filterimport { moogLadder } from '@audio/filter' let params = { fc: 1000, resonance: 0.5, fs: 44100 } for (let buf of stream) moogLadder(buf, params) - eq
Shelf, parametric, graphic EQ
1.3.0, 10 packages
Shelf, parametric, graphic EQ
npm i @audio/eqimport { parametricEq } from '@audio/eq' const fs = 48000 const input = new Float32Array(512) input[0] = 1 // impulse; replace with your mono PCM samples … - dynamics
Compressor, limiter, gate
dynamics: 17 packages
0.6.1, 17 packages
Compressor, limiter, gate
npm i @audio/dynamicsimport { compressor, limiter } from '@audio/dynamics' const sampleRate = 48000 const samples = Float32Array.from({ length: 4800 }, (_, i) => 0.8 * Math.sin(2 * Math.PI * 220 * i / sampleRate)) … - effect
Modulation, delay, distortion
effect: 26 packages
2.4.0, 26 packages
Modulation, delay, distortion
npm i @audio/effectimport { delay } from '@audio/effect' const fs = 48000 const input = new Float32Array(14401) input[0] = 1 // impulse; replace with mono PCM samples …
- saturate
Tape, tube, transistor saturation
saturate: 5 packages
1.3.0, 5 packages
Tape, tube, transistor saturation
npm i @audio/saturate - amp
Guitar/bass amp and cabinet
1.3.0, 2 packages
Guitar/bass amp and cabinet
npm i @audio/amp - reverb
Plate, spring, convolution reverb
1.3.0, 7 packages
Plate, spring, convolution reverb
npm i @audio/reverb - spatial
Panner, widener, crossfeed
spatial: 12 packages
1.3.0, 12 packages
Panner, widener, crossfeed
npm i @audio/spatial
repair28 packages
- denoise
Noise reduction and restoration
denoise: 21 packages
0.12.2, 21 packages
Noise reduction and restoration: gate, spectral subtraction, Wiener, OM-LSA, dehum, declick, decrackle, declip, dewind, deplosive, deesser, debreath, dereverb, debleed, dewow, desqueak
npm i @audio/denoiseimport { denoise, dehum, wiener, declick } from '@audio/denoise' let cleaned = denoise(samples) // auto-classify + dispatch let unhummed = dehum(samples, { freq: 60 }) // explicit method let { out, plan } = denoise(samples, { returnPlan: true }) // see what was chosen - defeedback
Adaptive feedback suppression
1.4.0, 3 packages
Adaptive feedback suppression: analyzer, tracker, notch bank
npm i @audio/defeedback
- vocals
Center vocal isolation & removal
1.0.5
Center vocal isolation & removal
npm i @audio/vocalsimport { isolate, remove } from '@audio/vocals' isolate([L, R]) // keep center-panned content (typically the vocal), discard sides remove([L, R]) // keep sides, discard center — karaoke - chain
Analysis-driven audio chain
0.7.1
Analysis-driven audio chain
npm i @audio/chainimport chain from '@audio/chain' const { channels, recipe, analysis } = chain([left, right], { type: 'speech' }) for (const s of recipe.stages) console.log(`${s.name.padEnd(9)} ${s.why}`) // a voice clipped, in a room, under white noise 16 dB down (bench/rx/assistant.mjs in audio, a tuning take): …
time & pitch36 packages
- stretch
Time stretching
2.5.2, 10 packages
Time stretching: WSOLA, phase vocoder variants, PaulStretch, PSOLA, SMS
npm i @audio/stretchimport { transient, wsola } from '@audio/stretch' let slower = transient(samples, { factor: 2 }) // 2× slower, same pitch let fast = wsola(samples, { factor: 0.75 }) // 1.33× faster - shift
Pitch shifting
shift: 15 packages
1.3.0, 15 packages
Canonical pitch-shifting algorithms: phase vocoder, peak-locked, transient-aware, PSOLA, WSOLA, granular, PaulStretch, SMS, HPSS, formant, sampler, hybrid
npm i @audio/shiftimport { transient } from '@audio/shift' // Batch let pitched = transient(audio, { semitones: 5 }) - tune
Pitch correction
0.6.1, 3 packages
Pitch correction: scale snap, MIDI-target, drawn curve
npm i @audio/tuneimport { snap, tuneMidi } from '@audio/tune' snap(data, { scale: 'major', root: 0 }) // to C major, vibrato kept snap(data, { speed: 0 }) // the hard-tuned effect tuneMidi(data, { guide: parsedSmf.notes }) // retune to a reference melody …
- scrub
Sound under a dragged caret
1.0.0
Sound under a dragged caret
npm i @audio/scrubimport scrub from '@audio/scrub' let voice = scrub([left, right], 44100, caret) // vocoder + noise; or { method: 'tape' }, … let out = [new Float32Array(128), new Float32Array(128)] voice.render(out, caret) // the next block; move the caret between blocks - sinusoidal
Sinusoidal modeling
1.0.2, 3 packages
Sinusoidal modeling: partial tracking, additive resynthesis, residual
npm i @audio/sinusoidal
synthesis25 packages
- synth
Synthesis & signal generators
synth: 20 packages
1.7.0, 20 packages
Synthesis & signal generators: noise colors, oscillator, chirp, DTMF, pluck, risset drum, rhythm track, envelope, LFO
npm i @audio/synth
- voice
Voice synthesis
1.0.3, 3 packages
Voice synthesis: vocal tract, voder, glottal source
npm i @audio/voiceimport { glottis, tract, voder, VOWELS, BANDS } from '@audio/voice' let excitation = glottis({ f0: 120, duration: 0.5 }) // → Float32Array (generator) let vowel = tract(excitation, { shape: 'a' }) // Float32Array → Float32Array (filter)
neural10 packages
render5 packages
- wavearea
Edit audio in textarea
1.1.0
Edit audio in textarea
npm i wavearea - gl-waveform
WebGL2 renderer for time series
5.3.0
WebGL2 renderer for time series
npm i gl-waveformimport Waveform from 'gl-waveform' // the drawing buffer is yours to size canvas.width = canvas.clientWidth * devicePixelRatio canvas.height = canvas.clientHeight * devicePixelRatio - gl-spectrogram
WebGL2 spectrogram renderer
2.4.0
WebGL2 spectrogram renderer: FFT on the GPU, reassigned to one-pixel lines, sharp at every zoom
npm i gl-spectrogramimport Spectrogram from 'gl-spectrogram' // the drawing buffer is yours to size canvas.width = canvas.clientWidth * devicePixelRatio canvas.height = canvas.clientHeight * devicePixelRatio
- wavefont
Typeface for visualizing waveform
3.8.2
Typeface for visualizing waveform
npm i wavefontimport wf, { char, shift } from 'wavefont' // characters for values from 0..127 range (clamped & rounded) wf(0, 1, 50, 99, 127) // 'ĀāIJţſ' - linefont
Typeface for visualizing line chart
3.4.2
Typeface for visualizing line chart
npm i linefontimport lf, { char } from 'linefont' // characters for values from 0..127 range (clamped & rounded) lf(0, 1, 50, 99, 127) // 'ĀāIJţſ'
platform5 packages
- web-audio-api
Web Audio API outside browsers
1.6.0
Web Audio API outside browsers
npm i web-audio-apiimport { OfflineAudioContext } from 'web-audio-api' const ctx = new OfflineAudioContext(2, 44100, 44100) // 1 second, stereo const osc = ctx.createOscillator() osc.frequency.value = 440 … - audio-buffer
AudioBuffer ponyfill and utils
7.3.2
AudioBuffer ponyfill and utils
npm i audio-bufferimport AudioBuffer from 'audio-buffer' import { from, trim, normalize } from 'audio-buffer/util' let buf = from([0, 0, 0.5, 0.8, 0.3, 0, 0]) buf = normalize(trim(buf))
- mic
Capture audio from microphone
2.0.0
Capture audio from microphone in browser/node
npm i @audio/micimport mic from '@audio/mic' let read = mic({ sampleRate: 44100, channels: 1, … - speaker
Output audio to speaker
speaker: 1 package
2.5.1, 1 package
Output audio to speaker
npm i @audio/speakerimport speaker from '@audio/speaker' let write = speaker({ sampleRate: 44100, channels: 2, …
build5 packages
- plugin
Processor contract and targets
0.1.5, 2 packages
JavaScript audio processors to AudioWorklet nodes and experimental macOS VST3 plugins
npm i @audio/pluginexport const gain = (ctx) => (inputs, outputs, params) => { const x = inputs[0], y = outputs[0], g = 10 ** (params.gain[0] / 20) for (let c = 0; c < y.length; c++) for (let i = 0; i < y[c].length; i++) y[c][i] = x[c][i] * g } … - assert
Audio assertions for CI
0.2.0
Audio assertions for CI
npm i @audio/assertimport { frequency, silent, unclipped, peak } from '@audio/assert' frequency(buffer, 44100) // → 440.01 (measured Hz) frequency(buffer, 44100, 440) // → 440.01, or throws "frequency 452.31 Hz (47.9 cents from 440 Hz)..." silent(tail) // → 0.0000012, or throws "not silent: peak -52.1 dBFS..." …
- test
Audio tool conformance tests
0.1.0
Audio tool conformance tests
npm i @audio/test
dsp12 packages
- digital-filter
IIR and FIR filter design
2.4.3
IIR and FIR filter design
npm i digital-filterimport { butterworth, filter, onePole } from 'digital-filter' // import butterworth from 'digital-filter/iir/butterworth.js' onePole(data, { fc: 100, fs: 44100 }) // smooth in-place - fourier-transform
Real and complex FFT
2.8.0
Real and complex FFT
npm i fourier-transformimport rfft from 'fourier-transform' // magnitude spectrum (N/2 bins) const spectrum = rfft(waveform) - window-function
Windows for spectral analysis
3.0.3
Windows for spectral analysis
npm i window-functionimport { hann, kaiser, generate, apply } from 'window-function' // Every window: fn(i, N, ...params) → number hann(50, 101) // single sample → 1.0 - periodic-function
Periodic waveform functions
2.1.2
Periodic waveform functions — phase normalized to [0,1]
npm i periodic-functionimport { sine, square, wavetable } from 'periodic-function' sine(0.25) // 1 (peak) square(0.75) // -1 (low) wavetable(null, [0, 1, 0, 0.5]) // Float32Array wavetable from Fourier coefficients - a-weighting
A/B/C/D/Z/M weighting curves
2.0.1
A/B/C/D/Z/M weighting curves
npm i a-weightingimport { a } from 'a-weighting' // apply a-weighting to frequency spectrum let weighted = frequencies.map((magnitude, i, data) => { let frequency = 22050 * i / data.length …
- stft
Batch and streaming STFT
2.1.0
Batch and streaming STFT
npm i @audio/stftimport { stftBatch, stftStream, stftAnalyse } from '@audio/stft' // process(mag, phase, state, ctx) → { mag, phase }, called per frame const identity = (mag, phase) => ({ mag, phase }) - window
STFT windows and COLA check
1.0.4
STFT windows and COLA check
npm i @audio/windowimport window, { apply, cola, hann } from '@audio/window' let w = window('hann', 1024) // periodic (DFT-even) — for STFT let sym = window('hann', 1024, { periodic: false }) // symmetric — for filter design - resample
Sample-rate conversion
1.2.5, 3 packages
Sample-rate conversion: sinc, linear, polyphase
npm i @audio/resampleimport { sinc, linear, polyphase, polyphaseStream } from '@audio/resample' sinc(data, { from: 44100, to: 48000 }) // → Float32Array linear(data, { from: 44100, to: 48000 }) // → Float32Array polyphase(data, { from: 44100, to: 48000 }) // → Float32Array - note
Hz, MIDI, note names
1.1.0
Hz, MIDI, note names
npm i @audio/noteimport { hzToMidi, midiToHz, name, parse, cents, SCALES, snapMidi, snapHz } from '@audio/note' name(69) // 'A4' cents(443) // { midi: 69, name: 'A4', hz: 440, cents: 11.7 } — tuner readout snapHz(450, { scale: 'major' }) // nearest major-scale frequency