aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVitaly Novichkov <Wohlstand@users.noreply.github.com>2018-05-08 21:37:26 +0300
committerGitHub <noreply@github.com>2018-05-08 21:37:26 +0300
commitbf25243afb80a171da29bbf97ef6fb7b9c3281bb (patch)
treed32aea29a8fdd4cc8343408461922c79e95b42a3 /src
parent788c3f5211b0eb98d2bdcd6bfab1393dc551cda6 (diff)
parentf729563b683c3ac7adcf07d2f4dffcdfa49fd605 (diff)
downloadlibADLMIDI-bf25243afb80a171da29bbf97ef6fb7b9c3281bb.tar.gz
libADLMIDI-bf25243afb80a171da29bbf97ef6fb7b9c3281bb.tar.bz2
libADLMIDI-bf25243afb80a171da29bbf97ef6fb7b9c3281bb.zip
Merge pull request #84 from jpcima/fix-pitchbend
fix pitchbend
Diffstat (limited to 'src')
-rw-r--r--src/adlmidi_midiplay.cpp2
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);
}