Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Jan 11, 2024
1 parent a6cb812 commit ccff2b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -3510,7 +3510,7 @@
}
function _32_7(a, b, c, d) {
var n = a * 0x1000000 + b * 0x10000 + c * 0x100 + d;
return n ? ((n >> 25) & 127) || 1 : 0;
return (n >> 25) & 127;
}
function _grp(m, g) { m.gr = g; return m; }
function _m2m1(msg) {
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ describe('JZZ.M2M1', function() {
});
it('aftertouch/pressure', function(done) {
var sample = new test.Sample(done, [
[0xa1, 60, 80], [0xa1, 60, 1], [0xa1, 60, 0], [0xa1, 60, 0], [0xd1, 80]
[0xa1, 60, 80], [0xa1, 60, 0], [0xa1, 60, 0], [0xa1, 60, 0], [0xd1, 80]
]);
var port = new JZZ.M2M1();
port.connect(function(msg) { sample.compare(msg); });
Expand Down

0 comments on commit ccff2b7

Please sign in to comment.