Skip to content

Commit

Permalink
Merge pull request #13463 from Swiftb0y/fix/gh11814-pitch-value-on-st…
Browse files Browse the repository at this point in the history
…artup

fix: `components.Pot` producing wrong result on first value
  • Loading branch information
m0dB committed Jul 13, 2024
2 parents 8db8b72 + 5973848 commit 3fde917
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions res/controllers/midi-components-0.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,7 @@
if (this.max === Component.prototype.max) {
this.max = (1 << 14) - 1;
}
value = (value << 7) + (this._firstLSB ? this._firstLSB : 0);
this.input(channel, control, value, status, group);
this.input(channel, control, (value << 7) + (this._firstLSB ? this._firstLSB : 0), status, group);
}
this.MSB = value;
},
Expand Down

0 comments on commit 3fde917

Please sign in to comment.