Skip to content

Commit

Permalink
Using MIDI2 context
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Mar 18, 2024
1 parent 643f886 commit 88fba7c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
13 changes: 12 additions & 1 deletion javascript/JZZ.midi.SMF.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* istanbul ignore next */
if (JZZ.MIDI.SMF) return;

var _ver = '1.8.9';
var _ver = '1.9.0';

var _now = JZZ.lib.now;
function _error(s) { throw new Error(s); }
Expand Down Expand Up @@ -1596,6 +1596,17 @@
return a.join('\n');
};
Clip.prototype.annotate = function() {
var i, ctxt;
ctxt = JZZ.Context();
for (i = 0; i < this.header.length; i++) {
if (this.header[i].lbl) this.header[i].lbl = undefined;
ctxt._read(this.header[i]);
}
ctxt = JZZ.Context();
for (i = 0; i < this.length; i++) {
if (this[i].lbl) this[i].lbl = undefined;
ctxt._read(this[i]);
}
return this;
};
Clip.prototype.player = function() {
Expand Down
Loading

0 comments on commit 88fba7c

Please sign in to comment.