Skip to content

Commit

Permalink
umpCoarseTuning()
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Dec 30, 2023
1 parent ffeb72f commit 0230936
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -3119,6 +3119,9 @@
umpPnNRPN: function(g, c, n, i, x, y, z, w) {
return [0x40 + _4b(g), 0x10 + _ch(c), _7bn(n), _8b(i)].concat(_32a(x, y, z, w));
},
umpCoarseTuning: function(g, c, n) {
return [0x40 + _4b(g), 0x20 + _ch(c), 0, 2, _7b(n) * 2, 0, 0, 0];
},
umpPnManagement: function(g, c, n, m) {
var a = m.toString().split('');
var x = 0;
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,9 @@ describe('UMP messages', function() {
assert.equal(JZZ.UMP.umpRPN(1, 2, 3, 4, 5).toString(), '41220304 00000005 -- Registered Controller');
assert.equal(JZZ.UMP.umpRPN(1, 2, 3, 4, 5, 6, 7, 8).toString(), '41220304 05060708 -- Registered Controller');
});
it('umpCoarseTuning', function() {
assert.equal(JZZ.UMP.umpCoarseTuning(1, 2, 3).toString(), '41220002 06000000 -- Registered Controller');
});
it('umpPitchBend', function() {
assert.equal(JZZ.UMP.umpPitchBend(1, 2, 3, 4, 5, 6).toString(), '41e20000 03040506 -- Pitch Bend');
assert.equal(JZZ.UMP.umpPitchBendF(1, 2, -1).toString(), '41e20000 00000000 -- Pitch Bend');
Expand Down

0 comments on commit 0230936

Please sign in to comment.