fix: renderBeatOffset in beats (multiply by timeSigNum)
renderBeatOffset was in bars but used as beat offset in rendering. Multiplying by timeSigNum=4 converts to beats so items appear at correct session-absolute positions.
This commit is contained in:
@@ -4626,7 +4626,7 @@ const PianoRollTabEditor = ({ st, zoom, bpm, viewportWidth, activeTracks, onClos
|
||||
}, [activeTracks, st.trackId, st.target_id]);
|
||||
const sessionStartBar = 0;
|
||||
const renderBeatOffset = sessionSyncMode && activeTargetItem
|
||||
? (activeTargetItem.startTime / secondsPerBar) : 0;
|
||||
? (activeTargetItem.startTime / secondsPerBar) * timeSigNum : 0;
|
||||
|
||||
const sessionLengthBars = React.useMemo(function() {
|
||||
var maxSec = 0;
|
||||
|
||||
Reference in New Issue
Block a user