Commit 4a4cf4f6 authored by Albert Gräf's avatar Albert Gräf
Browse files

Enable -legacy behavior of bendin (fixes #245).

parent a243cb31
......@@ -356,7 +356,11 @@ void inmidi_pitchbend(int portno, int channel, int value)
if (pd_this->pd_bendin_sym->s_thing)
{
t_atom at[2];
SETFLOAT(at, value-8192); // Ico fix the offset of the incoming pitchbend
// AG: -legacy behavior was changed so that it is consistent with
// vanilla bendin.
extern int sys_legacy;
int shift = sys_legacy ? 0 : 8192;
SETFLOAT(at, value-shift); // Ico fix the offset of the incoming pitchbend
SETFLOAT(at+1, (channel + (portno << 4) + 1));
pd_list(pd_this->pd_bendin_sym->s_thing, &s_list, 2, at);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment