mirror of
https://github.com/9x/sheetmusictrainer.git
synced 2026-09-02 01:24:33 +02:00
Clear note when mic turned off
This commit is contained in:
@@ -64,6 +64,7 @@ export function usePitchDetector(active: boolean) {
|
||||
analyzerRef.current = null;
|
||||
}
|
||||
setIsListening(false);
|
||||
setPitchData(null);
|
||||
if (animationRef.current) cancelAnimationFrame(animationRef.current);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user