diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-10 23:39:45 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-10 23:39:45 +0800 |
commit | 841eb920676d6c8ac6440c8929e7422e95a9c4c5 (patch) | |
tree | c28dd11fb908682e69d5eb6dc953d1e5bf66b5a7 /core/qmpmidimapperrtmidi.cpp | |
parent | e0e4f9f84bb8eed6cde71ff4d67286c2e26e4693 (diff) | |
download | QMidiPlayer-841eb920676d6c8ac6440c8929e7422e95a9c4c5.tar.xz |
The Last Judgement.
Diffstat (limited to 'core/qmpmidimapperrtmidi.cpp')
-rw-r--r-- | core/qmpmidimapperrtmidi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/qmpmidimapperrtmidi.cpp b/core/qmpmidimapperrtmidi.cpp index adba267..10f830e 100644 --- a/core/qmpmidimapperrtmidi.cpp +++ b/core/qmpmidimapperrtmidi.cpp @@ -77,8 +77,8 @@ void qmpMidiMapperRtMidi::pitchBend(int iid,int ch,int val) { if(!ports[iid])return;ch&=0x0F; std::vector<unsigned char>message; - message.push_back(0xE0|ch);message.push_back(val&0xFF); - message.push_back(val>>8);ports[iid]->sendMessage(&message); + message.push_back(0xE0|ch);message.push_back(val&0x7F); + message.push_back(val>>7);ports[iid]->sendMessage(&message); } void qmpMidiMapperRtMidi::sysEx(int iid,int length,const char *data) { |