// Huggins pitch — identical noise in both ears, one phase-shifted, produces a pitch in neither channel. // Run: node examples/huggins-pitch.js 600 20s // Run: node examples/huggins-pitch.js freq=600 -d 20s // Keys: q quit import { AudioContext } from 'web-audio-api' import { init } from './graphs/huggins-pitch.js' import { args, num, sec, keys, clearLine, help } from './utils.js' help({ description: 'hear a pitch that exists in neither noise channel alone', usage: ['', '[frequency] [duration]', 'freq=600 dur=20s'], options: [ ['freq=', 'target frequency (default: 600)'], ['-d, --duration