Skip to content

Commit

Permalink
MIDI2 Context - program/bank
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Mar 11, 2024
1 parent 27e4dc1 commit 4a63fa2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -2777,6 +2777,21 @@
this._cc[kk].sx = undefined;
}
}
else if (tt == 4) {
st = msg[1] >> 4;
ch = (msg[1] & 15).toString(16);
kk = gr + ch;
if (!this._cc[kk]) this._cc[kk] = {};
if (st == 12) {
if (msg[3] & 1) {
this._cc[kk].bm = msg[6];
this._cc[kk].bl = msg[7];
}
msg._bm = this._cc[kk].bm;
msg._bl = this._cc[kk].bl;
if (JZZ.MIDI.programName) msg.label(JZZ.MIDI.programName(msg[4], msg._bm, msg._bl));
}
}
}
}
else mmm = msg;
Expand Down

0 comments on commit 4a63fa2

Please sign in to comment.