From 0c1c9be1646edd2270538457c821db7238df1e91 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Tue, 14 Jun 2016 16:37:57 -0400
Subject: [PATCH] add 83fbd4f32f3d2b77b5967e4e6025c3b748a189ae to Pd-l2ork:
 fixed bendin incorrect value (was range of 0-16383, now is -8192 to 8191)

---
 pd/src/x_midi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pd/src/x_midi.c b/pd/src/x_midi.c
index 443295d54..3046c51e1 100644
--- a/pd/src/x_midi.c
+++ b/pd/src/x_midi.c
@@ -329,12 +329,12 @@ static void bendin_list(t_bendin *x, t_symbol *s, int argc, t_atom *argv)
     if (x->x_channel != 0)
     {
         if (channel != x->x_channel) return;
-        outlet_float(x->x_outlet1, value);
+        outlet_float(x->x_outlet1, value - 8192);
     }
     else
     {
         outlet_float(x->x_outlet2, channel);
-        outlet_float(x->x_outlet1, value);
+        outlet_float(x->x_outlet1, value - 8192);
     }
 }
 
-- 
GitLab