Skip to content

Commit

Permalink
Allow invalid SMPTE offset in MIDI files
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Dec 8, 2018
1 parent 91c3652 commit c77077c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
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.4"></script> // any particular version
<script src="https://cdn.jsdelivr.net/npm/jzz@0.6.5"></script> // any particular version
//...

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

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

var _time = Date.now || function () { return new Date().getTime(); };
Expand Down Expand Up @@ -1602,8 +1602,7 @@
smfSMPTE: function(dd) {
if (dd instanceof SMPTE) return _smf(84, String.fromCharCode(dd.hour) + String.fromCharCode(dd.minute) + String.fromCharCode(dd.second) + String.fromCharCode(dd.frame) + String.fromCharCode((dd.quarter % 4) * 25));
var s = '' + dd;
if (s.length == 5 && s.charCodeAt(4) < 100) {
new SMPTE(30, s.charCodeAt(0), s.charCodeAt(1), s.charCodeAt(2), s.charCodeAt(3), s.charCodeAt(4) / 25);
if (s.length == 5) {
return _smf(84, dd);
}
var arr = dd instanceof Array ? dd : Array.prototype.slice.call(arguments);
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
@@ -1,6 +1,6 @@
{
"name": "jzz",
"version": "0.6.4",
"version": "0.6.5",
"description": "MIDI library for Node.js and web-browsers",
"main": "javascript/JZZ.js",
"scripts": {
Expand Down

0 comments on commit c77077c

Please sign in to comment.