fix: use startSubTabPlayback for piano roll recording + pass recTempMidiNotes prop

This commit is contained in:
2026-07-25 19:39:55 +07:00
parent 432dec635a
commit 6cc3ae6ab8
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -9862,7 +9862,7 @@ const App = () => {
recordingStartTimeRef.current = startTime; recordingStartTimeRef.current = startTime;
setRecordingState('RECORDING'); setRecordingState('RECORDING');
setRecTempMidiNotes([]); setRecTempMidiNotes([]);
startTrackPlayback(startTime); startSubTabPlayback(tab, startTime);
startOffsetTimeRef.current = startTime; startOffsetTimeRef.current = startTime;
startAudioTimeRef.current = context.currentTime; startAudioTimeRef.current = context.currentTime;
setIsPlaying(true); setIsPlaying(true);
@@ -15432,6 +15432,7 @@ const App = () => {
showToast: showToast, showToast: showToast,
midiDevices: midiDevices, midiDevices: midiDevices,
recordingState: recordingState, recordingState: recordingState,
recTempMidiNotes: recTempMidiNotes,
onRecord: handleRecordClick, onRecord: handleRecordClick,
selectedMidiInputId: selectedMidiInputId, selectedMidiInputId: selectedMidiInputId,
onMidiInputSelect: handleMidiInputSelect, onMidiInputSelect: handleMidiInputSelect,
File diff suppressed because one or more lines are too long