Mercurial > hg > beaglert
changeset 495:a5867381a97b prerelease
libpd, fixed pitchbend range
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Tue, 21 Jun 2016 19:58:32 +0100 |
parents | e9821d65b9ba |
children | eb237b131ec7 |
files | core/default_libpd_render.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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; }