Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Jul 5, 2021
1 parent 0e8b290 commit f124d73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -2353,7 +2353,7 @@
if (this.isMidiSoft()) {
ss = _toLine(this.getText());
if (ss) ss = ' ' + ss;
return s + ' -- [' + __hex(this[5]) + ']' + ss;
return s + ' -- [K:' + __hex(this[5]) + ']' + ss;
}
var c = this[0] >> 4;
ss = {8: 'Note Off', 10: 'Aftertouch', 12: 'Program Change', 13: 'Channel Aftertouch', 14: 'Pitch Wheel'}[c];
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
],
"author": "jazz-soft (https://jazz-soft.net/)",
"dependencies": {
"@types/webmidi": "^2.0.4",
"@types/webmidi": "^2.0.5",
"jazz-midi": "^1.7.5"
},
"devDependencies": {
"eslint": "^7.29.0",
"eslint": "^7.30.0",
"grunt": "^1.4.1",
"grunt-contrib-jshint": "^3.0.0",
"grunt-contrib-uglify": "^5.0.1",
Expand Down
4 changes: 2 additions & 2 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ describe('MIDI messages', function() {
assert.equal(JZZ.MIDI.sxGS([0x40, 0x01, 0x33, 0x0c]).toString(), 'f0 41 7f 42 12 40 01 33 0c 00 f7');
});
it('sxMidiSoft', function() {
assert.equal(JZZ.MIDI.sxMidiSoft(0).toString(), 'f0 00 20 24 00 00 f7 -- [00]');
assert.equal(JZZ.MIDI.sxMidiSoft(4, 'MidiSoft').toString(), 'f0 00 20 24 00 04 4d 69 64 69 53 6f 66 74 f7 -- [04] MidiSoft');
assert.equal(JZZ.MIDI.sxMidiSoft(0).toString(), 'f0 00 20 24 00 00 f7 -- [K:00]');
assert.equal(JZZ.MIDI.sxMidiSoft(4, 'MidiSoft').toString(), 'f0 00 20 24 00 04 4d 69 64 69 53 6f 66 74 f7 -- [K:04] MidiSoft');
});
it('reset', function() {
assert.equal(JZZ.MIDI.reset().toString(), 'ff -- Reset');
Expand Down

0 comments on commit f124d73

Please sign in to comment.