diff --git a/javascript/JZZ.js b/javascript/JZZ.js index 4164656..3af5640 100644 --- a/javascript/JZZ.js +++ b/javascript/JZZ.js @@ -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]; diff --git a/package.json b/package.json index cb5161c..a657526 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/common.js b/test/common.js index 807441b..2809418 100644 --- a/test/common.js +++ b/test/common.js @@ -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');