diff --git a/src/components/AudioWaveform.tsx b/src/components/AudioWaveform.tsx index 2ca7e07..34d3c7f 100644 --- a/src/components/AudioWaveform.tsx +++ b/src/components/AudioWaveform.tsx @@ -653,6 +653,9 @@ export function AudioWaveform(props: AudioWaveformProps) { if (all) { setManualEvents([]); } + if (onsetRef.current) { + onsetRef.current.innerText = `${all ? 0 : manualEvents.length } events detected`; + } } function offsetEvents(): void {