audio

@audio/effect-subbass1.3.0

Psychoacoustic bass enhancer

Psychoacoustic bass enhancer — harmonic synthesis below cutoff (MaxxBass/RBass class)

Status
calibrated
Updated
Family
effect, 26 packages under it
Plugin
subbass, effect, streaming, 4 parameters
Category
effects
Licence
MIT
Dependencies
none
Downloads
3,110 last month
Tests
138 in audiojs/effect's CI, passed at 5ff5a84,

Listen

// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html
audio('/samples/music/modern/local-forecast.mp3').subbass()

// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html

Parameters

  • effect
  • streaming
  • tail
fc
80 Hz
30 to 200 Hz
amount
0.5
0 to 1
drive
0.5
0 to 1
keep
1
0 to 1

Extracts the band below fc, generates its harmonic series with an even/odd waveshaper, band-limits the harmonics to the audible low-mids, and mixes against dry. Small speakers reproduce the harmonics; the ear reconstructs the missing fundamental.

Install

Usage

import subbass from '@audio/effect-subbass'

let p = { fc: 80, amount: 0.5, drive: 0.5, keep: 1, fs: 44100 }
for (let buf of stream) subbass(buf, p)

subbass(data, params) mutates data (Float32Array/Float64Array) in place and returns it. Pass the same params object across calls — the sub-extraction and harmonic-band filter state persists on it (_sub, _out, _dc).

fc sub cutoff, Hz — harmonics built from below this (default 80; freq still accepted) · amount harmonic level 0–1 (default 0.5) · drive waveshaper intensity 0–1 (default 0.5) · keep how much original sub to keep, 0–1, 0 = replace entirely (default 1) · fs sample rate

Use when: small-speaker/phone playback, bass on systems that can't reproduce true sub
Not for: sources already reproduced on full-range monitors, general saturation (use @audio/effect-distortion)

Part of @audio/effect.