fix: extend piano roll playhead duration to 10min during recording

This commit is contained in:
2026-07-25 20:03:09 +07:00
parent 97855f47d1
commit 8849f33d07
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -9178,6 +9178,7 @@ const App = () => {
const notes = st.notes || [];
const bpmVal = parseInt(bpmRef?.current || bpm) || 120;
const beatSec = 60.0 / bpmVal;
if (recordingStateRef.current === 'RECORDING') return 600.0; // 10 min during recording
let maxEnd = 0;
notes.forEach(n => {
const end = (n.start_beat || 0) + (n.duration_beats || 1);