# HG changeset patch # User Giulio Moro # Date 1466562156 -3600 # Node ID a85851bb2e10a962e56803b8fe6099ef743c2f10 # Parent 1cec96845a23c8fd37e23202ccfe3210ea4e25f1 Fixed pitchbend range for heavy diff -r 1cec96845a23 -r a85851bb2e10 scripts/hvresources/heavy_render.cpp --- a/scripts/hvresources/heavy_render.cpp Wed Jun 22 01:51:17 2016 +0100 +++ b/scripts/hvresources/heavy_render.cpp Wed Jun 22 03:22:36 2016 +0100 @@ -268,7 +268,6 @@ break; } case kmmProgramChange: { - message.prettyPrint(); int channel = message.getChannel(); int program = message.getDataByte(0); hv_vscheduleMessageForReceiver(gHeavyContext, hvMidiHashes[kmmProgramChange], 0, "ff", @@ -276,8 +275,6 @@ break; } case kmmPolyphonicKeyPressure: { - message.prettyPrint(); - //TODO: untested, I do not have anything with polyTouch... who does, anyhow? int channel = message.getChannel(); int pitch = message.getDataByte(0); @@ -299,7 +296,7 @@ int channel = message.getChannel(); int value = ((message.getDataByte(1) << 7) | message.getDataByte(0)); hv_vscheduleMessageForReceiver(gHeavyContext, hvMidiHashes[kmmPitchBend], 0, "ff", - (float)channel+1, (float)value); + (float)value, (float)channel+1); break; } case kmmNone: