// Gamelan — Balinese-style interlocking patterns (kotekan). // Slendro scale, metalophone timbre, colotomic gong structure. // Run: node examples/gamelan.js 120 20s // Run: node examples/gamelan.js tempo=140 -d 1m // Keys: q quit import { AudioContext } from 'web-audio-api' import { init } from './graphs/gamelan.js' import { args, sec, keys, clearLine, help } from './utils.js' help({ description: 'play Balinese-style kotekan in a slendro scale', usage: ['', '[tempo] [duration]', 'tempo=140 dur=1m'], options: [ ['tempo=', 'tempo (default: 120)'], ['-d, --duration