Skip to content

Commit

Permalink
Fixed MIDI file playback in some antique browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Dec 6, 2018
1 parent 4e1a0ec commit 8b5c5a6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ by running `npm remove midi-test --save-dev`.
##### CDN

<script src="https://cdn.jsdelivr.net/npm/jzz"></script> // the latest version, or
<script src="https://cdn.jsdelivr.net/npm/jzz@0.6.3"></script> // any particular version
<script src="https://cdn.jsdelivr.net/npm/jzz@0.6.4"></script> // any particular version
//...

##### CommonJS (Browserify and Node.js command line applications)
Expand Down
4 changes: 2 additions & 2 deletions javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
})(this, function() {

var _scope = typeof window === 'undefined' ? global : window;
var _version = '0.6.3';
var _version = '0.6.4';
var i, j, k, m, n;

var _time = Date.now || function () { return new Date().getTime(); };
Expand Down Expand Up @@ -708,7 +708,7 @@
},
_close: function(port) { _engine._closeOut(port); },
_closeAll: _closeAll,
_receive: function(a) { this.plugin.MidiOutRaw(a.slice()); }
_receive: function(a) { if (a.length) this.plugin.MidiOutRaw(a.slice()); }
};
var plugin = _engine._pool[_engine._outArr.length];
impl.plugin = plugin;
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jzz",
"version": "0.6.3",
"version": "0.6.4",
"description": "MIDI library for Node.js and web-browsers",
"main": "javascript/JZZ.js",
"scripts": {
Expand Down

0 comments on commit 8b5c5a6

Please sign in to comment.