audio

@audio/effect-lofi1.2.0

Lo-fi character

Lo-fi character — wow/flutter, vinyl noise, crackle, bandwidth ceiling (RC-20 class)

Status
calibrated
Updated
Family
effect, 26 packages under it
Plugin
lofi, effect, streaming, 7 parameters
Category
effects
Licence
MIT
Dependencies
none
Downloads
3,203 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').lofi()

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

Parameters

  • effect
  • streaming
  • tail
wow
0.3
0 to 1
flutter
0.2
0 to 1
noise
0.1
0 to 1
crackle
0.1
0 to 1
lowpass
6000 Hz
500 to 18000 Hz
highpass
60 Hz
20 to 500 Hz
drive
0.3
0 to 1

Wow/flutter via LFO-modulated fractional delay, tape saturation, a vinyl noise bed (hiss + sparse crackle), and a 3-pole lowpass ceiling / one-pole highpass floor. Noise is a seeded LCG — renders are deterministic and reproducible.

Install

Usage

import lofi from '@audio/effect-lofi'

let p = { wow: 0.3, flutter: 0.2, noise: 0.1, crackle: 0.1, lowpass: 6000, highpass: 60, drive: 0.3, fs: 44100 }
for (let buf of stream) lofi(buf, p)

lofi(data, params) mutates data (Float32Array/Float64Array) in place and returns it. Pass the same params object across calls — delay-line, LFO phase, filter, and noise state persist on it (_buf, _ph1, _ph2, _lp1..3, _hp, _rnd, _crk).

wow 0–1, slow pitch drift, ~0.7 Hz, up to 3 ms (default 0.3) · flutter 0–1, fast wobble, ~7 Hz, up to 0.4 ms (default 0.2) · noise 0–1, hiss bed level (default 0.1) · crackle 0–1, impulse density/level (default 0.1) · lowpass bandwidth ceiling, Hz, 3-pole −18 dB/oct (default 6000) · highpass rumble floor, Hz, one-pole (default 60) · drive 0–1, tape saturation, gain-compensated tanh (default 0.3) · fs sample rate · seed LCG seed for the noise/crackle generator

Use when: cassette/vinyl emulation, sampler character, retro texture
Not for: transparent bandwidth reduction (use bitcrusher) or exciter-style HF recovery (use @audio/effect-sbr)

Part of @audio/effect.