diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-05-08 20:32:41 +0200 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-05-08 20:32:41 +0200 |
commit | f729563b683c3ac7adcf07d2f4dffcdfa49fd605 (patch) | |
tree | d32aea29a8fdd4cc8343408461922c79e95b42a3 /src/adlmidi_midiplay.cpp | |
parent | 788c3f5211b0eb98d2bdcd6bfab1393dc551cda6 (diff) | |
download | libADLMIDI-f729563b683c3ac7adcf07d2f4dffcdfa49fd605.tar.gz libADLMIDI-f729563b683c3ac7adcf07d2f4dffcdfa49fd605.tar.bz2 libADLMIDI-f729563b683c3ac7adcf07d2f4dffcdfa49fd605.zip |
fix pitchbend
Diffstat (limited to 'src/adlmidi_midiplay.cpp')
-rw-r--r-- | src/adlmidi_midiplay.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index 7c40fa0..39d7bff 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -1393,7 +1393,7 @@ void MIDIplay::realTime_PatchChange(uint8_t channel, uint8_t patch) void MIDIplay::realTime_PitchBend(uint8_t channel, uint16_t pitch) { channel = channel % 16; - Ch[channel].bend = (uint32_t(pitch) - 8192) * Ch[channel].bendsense; + Ch[channel].bend = (int(pitch) - 8192) * Ch[channel].bendsense; NoteUpdate_All(channel, Upd_Pitch); } |