audioJS

@audio/synth-chirp

Status calibrated

npm1.1.3licenseMIT

Chirp — linear/exponential frequency sweep (ESS measurement signal, Farina 2000)

Overview

Install
Updated
Family
synth, 20 packages under it
Tags
make

Frequency sweep — exp/linear

import chirp from '@audio/synth-chirp'

Frequency sweep generator. Exponential (log) sweep is the ESS measurement signal (Farina 2000, used by @audio/measure-ir); linear sweep is for response plots. Instantaneous frequency: linear f(t) = f0 + (f1-f0)·t/T, exponential f(t) = f0·(f1/f0)^(t/T). Unpitched — single opts argument, edges fade to avoid clicks.

chirp({ f0: 20, f1: 20000, duration: 1, method: 'exp' })   // → Float32Array
Param Default
f0 20 Start frequency, Hz
f1 fs/2 · 0.95 End frequency, Hz
duration 1 Seconds
method 'exp' 'exp' or 'lin'
amp 0.9 Peak amplitude
fade 0.005 Edge fade, seconds (anti-click)
fs 44100 Sample rate

Use when: measuring an impulse response (ESS deconvolution) or sweeping a filter/effect for a Bode-style plot.


Part of @audio/synth — the synth family umbrella.

MIT © audiojs