Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Oct 22, 2021
1 parent f89f5fc commit 14bd533
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,21 @@ describe('JZZ.Context', function() {
ctxt._receive(msg);
assert.equal(msg.toString(), 'f0 7f 7f 04 04 7f 7f f7 (Master Coarse Tuning)');
});
it('note/scale tuning', function() {
var ctxt = JZZ.Context();
var msg = JZZ.MIDI([0xf0, 0x7f, 0x7f, 0x08, 0x00, 0x00, 0xf7]);
ctxt._receive(msg);
assert.equal(msg.toString(), 'f0 7f 7f 08 00 00 f7');
msg = JZZ.MIDI([0xf0, 0x7e, 0x7f, 0x08, 0x00, 0x00, 0xf7]);
ctxt._receive(msg);
assert.equal(msg.toString(), 'f0 7e 7f 08 00 00 f7 (Bulk Tuning Dump Request)');
msg = JZZ.MIDI([0xf0, 0x7f, 0x7f, 0x08, 0x02, 0x00, 0x01, 0x45, 0x47, 0x00, 0x00, 0xf7]);
ctxt._receive(msg);
assert.equal(msg.toString(), 'f0 7f 7f 08 02 00 01 45 47 00 00 f7 (Note Tuning)');
msg = JZZ.MIDI([0xf0, 0x7e, 0x7f, 0x08, 0x02, 0x00, 0x01, 0x45, 0x47, 0x00, 0x00, 0xf7]);
ctxt._receive(msg);
assert.equal(msg.toString(), 'f0 7e 7f 08 02 00 01 45 47 00 00 f7');
});
it('unknown 04 xx', function() {
var ctxt = JZZ.Context();
var msg = JZZ.MIDI([0xf0, 0x7f, 0x7f, 0x04, 0x7f, 0x7f, 0x7f, 0xf7]);
Expand Down

0 comments on commit 14bd533

Please sign in to comment.