Mercurial > hg > beaglert
diff core/default_libpd_render.cpp @ 495:a5867381a97b prerelease
libpd, fixed pitchbend range
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Tue, 21 Jun 2016 19:58:32 +0100 |
parents | dbc76783db2a |
children | b6eb94378ca9 |
line wrap: on
line diff
--- 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; }