// Dirac impulse — single-sample click for impulse response testing. // Run: node examples/impulse.js 5 0.5s // Run: node examples/impulse.js count=3 interval=1s // Keys: space pause · f fire impulse · q quit import { AudioContext } from 'web-audio-api' import { init } from './graphs/impulse.js' import { args, sec, keys, clearLine, help } from './utils.js' help({ description: 'fire single-sample impulses for response testing', usage: ['', '[count] [interval]', 'count=3 interval=1s'], options: [ ['count=', 'number of scheduled impulses (default: 1)'], ['interval=