comparison 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
comparison
equal deleted inserted replaced
497:37f10f61433a 498:c932df224fd3
295 break; 295 break;
296 } 296 }
297 case kmmPitchBend: 297 case kmmPitchBend:
298 { 298 {
299 int channel = message.getChannel(); 299 int channel = message.getChannel();
300 int value = ((message.getDataByte(1) << 7) | message.getDataByte(0)) - 8192; 300 int value = ((message.getDataByte(1) << 7) | message.getDataByte(0));
301 hv_vscheduleMessageForReceiver(gHeavyContext, hvMidiHashes[kmmPitchBend], 0, "ff", 301 hv_vscheduleMessageForReceiver(gHeavyContext, hvMidiHashes[kmmPitchBend], 0, "ff",
302 (float)channel+1, (float)value); 302 (float)channel+1, (float)value);
303 break; 303 break;
304 } 304 }
305 case kmmNone: 305 case kmmNone: