Clear note when mic turned off

This commit is contained in:
2025-12-27 14:01:05 +01:00
parent 647a91c4b8
commit e1a94d1f47

View File

@@ -64,6 +64,7 @@ export function usePitchDetector(active: boolean) {
analyzerRef.current = null;
}
setIsListening(false);
setPitchData(null);
if (animationRef.current) cancelAnimationFrame(animationRef.current);
}