fix: ghost playback only when track button is red
- When activePlayTrackIds is null (no button selected): no ghost play - When activePlayTrackIds is set (one button red): only that track's ghost notes play, with the track's own instrument on its own channel
This commit is contained in:
@@ -5064,7 +5064,7 @@ const PianoRollTabEditor = ({ st, zoom, bpm, viewportWidth, activeTracks, onClos
|
||||
}
|
||||
var layers = [];
|
||||
ghostLayers.forEach(function(layer) {
|
||||
if (activePlayTrackIds !== null && activePlayTrackIds !== layer.track_id) return;
|
||||
if (activePlayTrackIds === null || activePlayTrackIds !== layer.track_id) return;
|
||||
var trk = (activeTracks || []).find(function(t) { return t.id === layer.track_id; });
|
||||
layers.push({
|
||||
trackId: layer.track_id,
|
||||
|
||||
Reference in New Issue
Block a user