Skip to content

Commit

Permalink
SMPTE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Jun 10, 2021
1 parent 73562d9 commit 958911f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -68,15 +68,15 @@ by running `npm remove midi-test --save-dev`.

```html
<script src="https://cdn.jsdelivr.net/npm/jzz"></script> // the latest version, or
<script src="https://cdn.jsdelivr.net/npm/jzz@1.3.3"></script> // any particular version
<script src="https://cdn.jsdelivr.net/npm/jzz@1.3.4"></script> // any particular version
//...
```

##### CDN (unpkg)

```html
<script src="https://unpkg.com/jzz"></script> // the latest version, or
<script src="https://unpkg.com/jzz@1.3.3"></script> // any particular version
<script src="https://unpkg.com/jzz@1.3.4"></script> // any particular version
//...
```

Expand Down
4 changes: 2 additions & 2 deletions javascript/JZZ.js
Expand Up @@ -14,7 +14,7 @@
})(this, function() {

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

var _time = Date.now || function () { return new Date().getTime(); };
Expand Down Expand Up @@ -1502,7 +1502,7 @@
function _dec(x) { return x < 10 ? '0' + x : x; }
function _smptetxt(x) {
var arr = [];
for (var i = 0; i < x.length; i++) arr[i] = _dec(x[i]);
for (var i = 0; i < x.length; i++) arr[i] = _dec(i ? x[i] : x[i] & 0x1f);
return arr.join(':');
}
SMPTE.prototype.toString = function() { return _smptetxt([this.hour, this.minute, this.second, this.frame]); };
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "jzz",
"version": "1.3.3",
"version": "1.3.4",
"description": "MIDI library for Node.js and web-browsers",
"main": "javascript/JZZ.js",
"scripts": {
Expand All @@ -21,14 +21,14 @@
"jazz-midi": "^1.7.5"
},
"devDependencies": {
"eslint": "^7.26.0",
"grunt": "^1.4.0",
"eslint": "^7.28.0",
"grunt": "^1.4.1",
"grunt-contrib-jshint": "^3.0.0",
"grunt-contrib-uglify": "^5.0.1",
"midi-test": "^1.1.6",
"mocha": "^8.4.0",
"midi-test": "^1.1.7",
"mocha": "^9.0.0",
"nyc": "^15.1.0",
"web-midi-test": "^1.1.6"
"web-midi-test": "^1.1.7"
},
"runkitExampleFilename": "runkit.js",
"repository": {
Expand Down

0 comments on commit 958911f

Please sign in to comment.