Skip to content

Commit 3fde917

Browse files
authored
Merge pull request #13463 from Swiftb0y/fix/gh11814-pitch-value-on-startup
fix: `components.Pot` producing wrong result on first value
2 parents 8db8b72 + 5973848 commit 3fde917

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

res/controllers/midi-components-0.0.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,7 @@
481481
if (this.max === Component.prototype.max) {
482482
this.max = (1 << 14) - 1;
483483
}
484-
value = (value << 7) + (this._firstLSB ? this._firstLSB : 0);
485-
this.input(channel, control, value, status, group);
484+
this.input(channel, control, (value << 7) + (this._firstLSB ? this._firstLSB : 0), status, group);
486485
}
487486
this.MSB = value;
488487
},

0 commit comments

Comments
 (0)