Skip to content

Commit

Permalink
umpFineTuning()
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Jan 10, 2024
1 parent 6c88d91 commit 77cf764
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));
},
umpFineTuning: function(g, c, x, y, z, w) {
return _helperGC.umpRPN(g, c, 0, 1, x, y, z, w);
},
umpCoarseTuning: function(g, c, n) {
return [0x40 + _4b(g), 0x20 + _ch(c), 0, 2, _7b(n) * 2, 0, 0, 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('umpFineTuning', function() {
assert.equal(JZZ.UMP.umpFineTuning(1, 2, 0x80000000).toString(), '41220001 80000000 -- Registered Controller: Fine Tuning');
});
it('umpCoarseTuning', function() {
assert.equal(JZZ.UMP.umpCoarseTuning(1, 2, 3).toString(), '41220002 06000000 -- Registered Controller: Coarse Tuning');
});
Expand Down

0 comments on commit 77cf764

Please sign in to comment.