fix: extend piano roll playhead duration to 10min during recording
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user