Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 1x 1x 1x 1x |
export type SoundOn = (note: string, time: number, output: AudioNode) => SoundOff;
export type SoundOff = (time?: number) => void;
export const NoOp: SoundOff = () => { }
export type Track = {
lastFn: Array<Array<SoundOff>>; // 16
idx: number;
vol: GainNode;
pan: PannerNode;
instrument: SoundOn;
};
export type Tracker = {
/** track info while the song is running */
tracks: Array<Track>;
/** all tracks will send audio output to this node */
output: AudioNode;
}
|