mirror of
https://github.com/9x/sheetmusictrainer.git
synced 2026-09-02 09:34: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;
|
analyzerRef.current = null;
|
||||||
}
|
}
|
||||||
setIsListening(false);
|
setIsListening(false);
|
||||||
|
setPitchData(null);
|
||||||
if (animationRef.current) cancelAnimationFrame(animationRef.current);
|
if (animationRef.current) cancelAnimationFrame(animationRef.current);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user