API Reference / ProcessorOutputEvent
Type Alias: ProcessorOutputEvent
ts
type ProcessorOutputEvent =
| {
type: "bpm";
data: BpmCandidates;
}
| {
type: "bpmStable";
data: BpmCandidates;
}
| {
type: "analyzerReset";
}
| {
type: "analyzeChunk";
data: Float32Array;
}
| {
type: "validPeak";
data: {
threshold: Threshold;
index: number;
};
}
| {
type: "error";
data: {
message: string;
error: Error;
};
};Defined in: core/types.ts:5
Events emitted by the BPM analyzer processor (Processor → Main Thread)