Skip to content

Commit

Permalink
umpTuningF()
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Feb 4, 2024
1 parent 835144e commit e544dd3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -3164,6 +3164,7 @@
_helperGC.umpPnPressureF = _helperGC.umpAftertouchF;
_helperGC.umpTranspose = _helperGC.umpCoarseTuningF;
var _helperGCX = {
umpTuningF: function(g, c, x) { return [_helperGC.umpCoarseTuningF(g, c, x), _helperGC.umpFineTuningF(g, c, x)]; },
umpCustomText: function(g, c, d, b, s, t) {
var i;
var a = [];
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,11 @@ describe('UMP messages', function() {
assert.equal(JZZ.UMP.umpCoarseTuningF(1, 2, -1.5).toString(), '41220002 7e000000 -- Registered Controller: Coarse Tuning');
assert.equal(JZZ.UMP.umpTranspose(1, 2, 0).toString(), '41220002 80000000 -- Registered Controller: Coarse Tuning');
});
it('umpTuning', function() {
assert.equal(JZZ.UMP.umpTuningF(1, 2, 0).toString(), '41220002 80000000 -- Registered Controller: Coarse Tuning,41220001 80000000 -- Registered Controller: Fine Tuning');
assert.equal(JZZ.UMP.umpTuningF(1, 2, 1.5).toString(), '41220002 82000000 -- Registered Controller: Coarse Tuning,41220001 c0000000 -- Registered Controller: Fine Tuning');
assert.equal(JZZ.UMP.umpTuningF(1, 2, -1.5).toString(), '41220002 7e000000 -- Registered Controller: Coarse Tuning,41220001 40000000 -- Registered Controller: Fine Tuning');
});
it('umpTuningProgram', function() {
assert.equal(JZZ.UMP.umpTuningProgram(1, 2, 0).toString(), '41220003 00000000 -- Registered Controller: Select Tuning Program');
});
Expand Down

0 comments on commit e544dd3

Please sign in to comment.