// Generative jazz — a style, a lead, a key, and a new performance every time. // Run: node examples/jazz.js // Run: node examples/jazz.js style=ambient lead=flute -d 3m // Keys: space pause · q quit import { AudioContext } from 'web-audio-api' import { init } from './graphs/jazz.js' import { args, sec, keys, clearLine, help } from './utils.js' help({ description: 'generate a jazz performance in a chosen style', usage: ['', 'style=ambient lead=flute -d 3m', 'style=bossa bpm=124'], options: [ ['style=', 'modal (default), ambient, nordic, ballad, bossa, swing, or blues'], ['lead=', 'guitar (default), flute, harp, or piano'], ['bpm=', 'performance tempo (default: the middle of the style\'s range)'], ['-d, --duration