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:
2026-07-27 19:49:10 +07:00
parent c9176a27fa
commit a60607c673
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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,