Skip to content

Commit

Permalink
Validate SYX
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Jan 17, 2022
1 parent 772b3c5 commit 306486c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.*
minified
test*
.*
coverage
bower.json
Gruntfile.js
*.html
!test
3 changes: 2 additions & 1 deletion javascript/JZZ.midi.SMF.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* istanbul ignore next */
if (JZZ.MIDI.SMF) return;

var _ver = '1.6.4';
var _ver = '1.6.5';

var _now = JZZ.lib.now;
function _error(s) { throw new Error(s); }
Expand Down Expand Up @@ -1143,6 +1143,7 @@
else _not_a_syx();
}
};
SYX.prototype.validate = function() { return []; };
SYX.prototype.dump = function() {
var i, j, s = '';
for (i = 0; i < this.length; i++) for (j = 0; j < this[i].length; j++) s += String.fromCharCode(this[i][j]);
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.midi.SMF.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jzz-midi-smf",
"version": "1.6.4",
"version": "1.6.5",
"description": "Standard MIDI Files: read / write / play",
"main": "javascript/JZZ.midi.SMF.js",
"scripts": {
Expand All @@ -19,14 +19,14 @@
"jzz": "^1.4.7"
},
"devDependencies": {
"eslint": "^8.5.0",
"eslint": "^8.7.0",
"grunt": "^1.4.1",
"grunt-contrib-jshint": "^3.1.1",
"grunt-contrib-uglify": "^5.0.1",
"jzz-gui-player": "^1.5.2",
"jzz-gui-player": "^1.5.3",
"jzz-midi-gm": "^1.2.8",
"jzz-synth-tiny": "^1.2.8",
"mocha": "^9.1.3",
"mocha": "^9.1.4",
"nyc": "^15.1.0"
},
"runkitExampleFilename": "runkit.js",
Expand Down
1 change: 1 addition & 0 deletions test/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ describe('SYX', function() {
syx = JZZ.MIDI.SYX(syx);
assert.equal(syx[0].toString(), 'f0 7e 7f 06 01 f7');
assert.equal(syx[1].toString(), 'f0 7e 01 06 01 f7');
syx.validate();
});
it('player', function(done) {
var syx = JZZ.MIDI.SYX(JZZ.MIDI.sxIdRequest());
Expand Down

0 comments on commit 306486c

Please sign in to comment.