croonjs
Version:
Toolkit for parsing and playing numbered musical notation
14 lines (13 loc) • 496 B
TypeScript
import type { DigitizedNotation } from './digitizer.js';
import type { ParsedNotation } from './parser.js';
interface AudioOptions {
waveform?: OscillatorType | PeriodicWaveOptions;
gain?: number;
simulation?: 'idiophone' | 'aerophone';
}
export interface PlayOptions extends AudioOptions {
context?: AudioContext;
signal?: AbortSignal;
}
export declare function play(notation: string | ParsedNotation | DigitizedNotation, options?: PlayOptions): Promise<unknown>;
export {};