Skip to content

Commit

Permalink
UMP.dump()
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Aug 28, 2023
1 parent 76c0b78 commit 2dd7fea
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
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/[email protected].7"></script> // any particular version
<script src="https://cdn.jsdelivr.net/npm/[email protected].8"></script> // any particular version
//...
```

##### CDN (unpkg)

```html
<script src="https://unpkg.com/jzz"></script> // the latest version, or
<script src="https://unpkg.com/[email protected].7"></script> // any particular version
<script src="https://unpkg.com/[email protected].8"></script> // any particular version
//...
```

Expand Down
8 changes: 7 additions & 1 deletion javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
})(this, function() {

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

/* istanbul ignore next */
Expand Down Expand Up @@ -2920,6 +2920,12 @@
}
UMP.prototype = [];
UMP.prototype.constructor = UMP;
UMP.prototype.dump = function() {
var i;
var s = '';
for (i = 0; i < this.length; i++) s += String.fromCharCode(this[i]);
return s;
};

function _UMP() {}
_UMP.prototype = UMP;
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jzz",
"version": "1.6.7",
"version": "1.6.8",
"description": "MIDI library for Node.js and web-browsers",
"main": "javascript/JZZ.js",
"scripts": {
Expand All @@ -22,7 +22,7 @@
"jazz-midi": "^1.7.9"
},
"devDependencies": {
"eslint": "^8.47.0",
"eslint": "^8.48.0",
"grunt": "^1.6.1",
"grunt-contrib-jshint": "^3.2.0",
"grunt-contrib-uglify": "^5.2.2",
Expand Down
1 change: 1 addition & 0 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ describe('UMP messages', function() {
var msg =JZZ.UMP.noop();
assert.equal(typeof msg.getGroup(), 'undefined');
assert.equal(typeof msg.getDelta(), 'undefined');
assert(msg.dump(), '\0\0\0\0');
assert.equal(msg.toString(), s);
msg = new JZZ.UMP(msg);
assert.equal(msg.toString(), s);
Expand Down
2 changes: 1 addition & 1 deletion web-midi-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"web-midi-api"
],
"dependencies": {
"jzz": "^1.6.7"
"jzz": "^1.6.8"
},
"contributors": [
{
Expand Down

0 comments on commit 2dd7fea

Please sign in to comment.