Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0dbaa3f

Browse files
Merge pull request #11795 from Skyslycer/skyslycer/midi-pitch-channel-fix
fix(usbmidi): use channel in int16_t USB MIDI pitch bend
2 parents cb04e89 + 0da3b04 commit 0dbaa3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎libraries/USB/src/USBMIDI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void USBMIDI::channelPressure(uint8_t pressure, uint8_t channel) {
9292
// Pitch Bend Change [-8192,0,8191]
9393
void USBMIDI::pitchBend(int16_t value, uint8_t channel) {
9494
uint16_t pitchBendValue = constrain(value, -8192, 8191) + 8192;
95-
pitchBend(pitchBendValue);
95+
pitchBend(pitchBendValue, channel);
9696
}
9797

9898
// Pitch Bend Change [0,8192,16383]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /