Mercurial > hg > beaglert
comparison 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 |
comparison
equal
deleted
inserted
replaced
492:e9821d65b9ba | 495:a5867381a97b |
---|---|
296 break; | 296 break; |
297 } | 297 } |
298 case kmmPitchBend: | 298 case kmmPitchBend: |
299 { | 299 { |
300 int channel = message.getChannel(); | 300 int channel = message.getChannel(); |
301 int value = (message.getDataByte(1) << 7)| message.getDataByte(0); | 301 int value = ((message.getDataByte(1) << 7)| message.getDataByte(0)) - 8192; |
302 libpd_pitchbend(channel, value); | 302 libpd_pitchbend(channel, value); |
303 break; | 303 break; |
304 } | 304 } |
305 case kmmNone: | 305 case kmmNone: |
306 case kmmAny: | 306 case kmmAny: |