Mercurial > hg > beaglert
diff scripts/hvresources/heavy_render.cpp @ 498:c932df224fd3 prerelease
FIXED the heavy pitchbend range
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Tue, 21 Jun 2016 20:07:10 +0100 |
parents | eb237b131ec7 |
children | a85851bb2e10 |
line wrap: on
line diff
--- a/scripts/hvresources/heavy_render.cpp Tue Jun 21 20:01:26 2016 +0100 +++ b/scripts/hvresources/heavy_render.cpp Tue Jun 21 20:07:10 2016 +0100 @@ -297,7 +297,7 @@ case kmmPitchBend: { int channel = message.getChannel(); - int value = ((message.getDataByte(1) << 7) | message.getDataByte(0)) - 8192; + int value = ((message.getDataByte(1) << 7) | message.getDataByte(0)); hv_vscheduleMessageForReceiver(gHeavyContext, hvMidiHashes[kmmPitchBend], 0, "ff", (float)channel+1, (float)value); break;