Skip to content

Commit

Permalink
Splitting compound UMP - in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Mar 27, 2024
1 parent 308cd56 commit 8f2d380
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions javascript/JZZ.midi.SMF.js
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,18 @@
img._tick = this._tick + t;
return img;
};
function _ump(msg) {
if (!msg || !msg.length) _error('Not a MIDI message');
var i;
var a = [];
try {
a.push(JZZ.UMP(msg));
}
catch (e) {
for (i = 0; i < msg.length; i++) a.push(JZZ.UMP(msg[i]));
}
return a;
}
Clip.prototype.add = function(t, msg) {
t = parseInt(t);
if(isNaN(t) || t < 0) _error('Invalid parameter');
Expand Down

0 comments on commit 8f2d380

Please sign in to comment.