Skip to content

Commit

Permalink
Merge pull request #147 from akmidd/master
Browse files Browse the repository at this point in the history
fix MSB calculation for PitchBend command
  • Loading branch information
armadsen committed Apr 9, 2016
2 parents d6496c9 + a5b9cde commit 23ce324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/MIKMIDIPitchBendChangeCommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ - (void)setPitchChange:(UInt16)pitchChange

pitchChange = MIN(pitchChange, 0x3FFF);
self.dataByte1 = pitchChange & 0x007F;
self.dataByte2 = pitchChange & 0x3F80;
self.dataByte2 = (pitchChange & 0x3F80) >> 7;
}

@end
Expand Down

0 comments on commit 23ce324

Please sign in to comment.