practice mode working, timestamp is delayed for some reason

This commit is contained in:
GitBluub
2024-01-16 00:35:17 +01:00
committed by Clément Le Bihan
parent c08a1a2c74
commit c1d714e02a
3 changed files with 10 additions and 68 deletions

View File

@@ -186,7 +186,7 @@ const PartitionMagic = ({
}, [data?.cursors, melodySound.current?._loaded]);
React.useEffect(() => {
if (!shouldPlay) return;
if (!shouldPlay && playType != 'practice') return;
if (!piano.current || !isPianoLoaded) return;
if (!data || data?.cursors.length === 0) return;
getCursorToPlay(