# HG changeset patch # User Giulio Moro # Date 1466535512 -3600 # Node ID a5867381a97bfc6815ee037a43946a1a0332b152 # Parent e9821d65b9bafa32367fe0e363f50402f2c07dc7 libpd, fixed pitchbend range diff -r e9821d65b9ba -r a5867381a97b core/default_libpd_render.cpp --- a/core/default_libpd_render.cpp Tue Jun 21 17:36:58 2016 +0100 +++ b/core/default_libpd_render.cpp Tue Jun 21 19:58:32 2016 +0100 @@ -298,7 +298,7 @@ case kmmPitchBend: { int channel = message.getChannel(); - int value = (message.getDataByte(1) << 7)| message.getDataByte(0); + int value = ((message.getDataByte(1) << 7)| message.getDataByte(0)) - 8192; libpd_pitchbend(channel, value); break; }