// Missing fundamental — hear a pitch that isn't there. // Only harmonics 2–6 are played; the brain fills in the fundamental. // Run: node examples/missing-fundamental.js 100 3s // Run: node examples/missing-fundamental.js freq=80 dur=5s import { AudioContext } from 'web-audio-api' import { init } from './graphs/missing-fundamental.js' import { args, num, sec, keys, clearLine, help } from './utils.js' help({ description: 'hear a fundamental frequency that is not being played', usage: ['', '[fundamental] [duration]', 'freq=80 dur=5s'], options: [ ['freq=', 'implied fundamental; only harmonics 2–6 are played (default: 100)'], ['fund=', 'include the fundamental for comparison (default: off)'], ['-d, --duration