fix: sync piano roll playhead with main timeline position
handleEditMidiInTab now sets currentTime relative to item start: currentTime = Math.max(0, mainTimelineCurrentTime - midiItem.startTime) so playhead reflects the main timeline position instead of bar 0.
This commit is contained in:
@@ -8294,7 +8294,7 @@ const App = () => {
|
|||||||
buffer: silentBuffer,
|
buffer: silentBuffer,
|
||||||
instrumentProgram: track.instrumentProgram,
|
instrumentProgram: track.instrumentProgram,
|
||||||
instrumentName: track.instrumentName,
|
instrumentName: track.instrumentName,
|
||||||
currentTime: 0,
|
currentTime: Math.max(0, currentTime - midiItem.startTime),
|
||||||
isPlaying: false,
|
isPlaying: false,
|
||||||
selectionStart: null,
|
selectionStart: null,
|
||||||
selectionEnd: null,
|
selectionEnd: null,
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user