// Zwicker tone — a notch cut into cycling noise leaves a faint after-tone in the silence. // Run: node examples/zwicker-tone.js 2000 3 2 20s // Run: node examples/zwicker-tone.js freq=2000 on=3 off=2 -d 20s // Keys: q quit import { AudioContext } from 'web-audio-api' import { init } from './graphs/zwicker-tone.js' import { args, num, sec, keys, clearLine, help } from './utils.js' help({ description: 'notch cycling noise and hear a faint after-tone in the silence', usage: ['', '[frequency] [on] [off] [duration]', 'freq=2000 on=3 off=2 dur=20s'], options: [ ['freq=', 'notch center frequency (default: 2000)'], ['on=', 'noise-on duration (default: 3)'], ['off=', 'silence duration (default: 2)'], ['-d, --duration