Skip to content

Commit

Permalink
Added helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Jun 1, 2023
1 parent 2055a0c commit a550401
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 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.7.5';
var _ver = '1.7.6';

var _now = JZZ.lib.now;
function _error(s) { throw new Error(s); }
Expand Down Expand Up @@ -120,6 +120,7 @@
return self;
}
SMF.version = function() { return _ver; };
SMF.num4 = _num4;

SMF.prototype = [];
SMF.prototype.constructor = SMF;
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jzz-midi-smf",
"version": "1.7.5",
"version": "1.7.6",
"description": "Standard MIDI Files: read / write / play",
"main": "javascript/JZZ.midi.SMF.js",
"scripts": {
Expand All @@ -16,10 +16,10 @@
],
"author": "jazz-soft (https://jazz-soft.net/)",
"dependencies": {
"jzz": "^1.6.3"
"jzz": "^1.6.4"
},
"devDependencies": {
"eslint": "^8.40.0",
"eslint": "^8.41.0",
"grunt": "^1.6.1",
"grunt-contrib-jshint": "^3.2.0",
"grunt-contrib-uglify": "^5.2.2",
Expand Down
3 changes: 3 additions & 0 deletions test/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ describe('functions', function() {
trk.length = 0;
assert.equal(smf.player().trim(), 0);
});
it('num4', function() {
assert.equal(JZZ.MIDI.SMF.num4(100000000), '\x05\xf5\xe1\x00');
});
});

describe('integration: read / write / play', function() {
Expand Down

0 comments on commit a550401

Please sign in to comment.