V45.20: fix Bug 6 (piano roll trang - bo subTabsRef/activeTabRef ngoai scope trong renderKeybed -> const _kbSilent=false; renderKeybed chi chay o PR tab nen luon false) + Bug 1 debug (them pitch vao log midi_push) v=202608311305
This commit is contained in:
@@ -11067,11 +11067,11 @@ const PianoRollTabEditor = ({ st, zoom, bpm, viewportWidth, activeTracks, onClos
|
||||
var kbTrk = activeTracks.find(function(t) { return t.id === st.trackId; });
|
||||
var kbCtx = resolveTrackInstrumentCtx(kbTrk, activeTracks);
|
||||
ensureSonicInstrument(kbCtx);
|
||||
// V45.19 Bug 2: keybed chi phat khi DANG o PIANO_ROLL tab hoac track isArmed
|
||||
// (MAIN/SECTION + ARM off -> cam). NOTE_OFF van gui (vo hai).
|
||||
const _kbPrTab = (subTabsRef.current || []).find(function (s) { return s.id === activeTabRef.current; });
|
||||
const _kbIsPrTab = !!(_kbPrTab && _kbPrTab.type === 'PIANO_ROLL');
|
||||
const _kbSilent = !_kbIsPrTab && !(kbTrk && kbTrk.isArmed);
|
||||
// V45.20 Bug 6: renderKeybed CHI chay trong PianoRollTabEditor (st.type === 'PIANO_ROLL'
|
||||
// -> luon la PR tab) nen _kbSilent luon false. Bo refs ngoai scope (subTabsRef/
|
||||
// activeTabRef) gay ReferenceError render crash -> piano roll trang. NOTE_OFF
|
||||
// van gui (vo hai) nhu V45.19.
|
||||
const _kbSilent = false;
|
||||
const keys = [];
|
||||
for (let pitch = 127; pitch >= PITCH_START; pitch--) {
|
||||
const isBlack = [1, 3, 6, 8, 10].includes(pitch % 12);
|
||||
|
||||
Reference in New Issue
Block a user