Skip to content
Snippets Groups Projects
Commit 4a4cf4f6 authored by Albert Gräf's avatar Albert Gräf
Browse files

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

parent a243cb31
No related branches found
No related tags found
No related merge requests found
...@@ -356,7 +356,11 @@ void inmidi_pitchbend(int portno, int channel, int value) ...@@ -356,7 +356,11 @@ void inmidi_pitchbend(int portno, int channel, int value)
if (pd_this->pd_bendin_sym->s_thing) if (pd_this->pd_bendin_sym->s_thing)
{ {
t_atom at[2]; 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)); SETFLOAT(at+1, (channel + (portno << 4) + 1));
pd_list(pd_this->pd_bendin_sym->s_thing, &s_list, 2, at); pd_list(pd_this->pd_bendin_sym->s_thing, &s_list, 2, at);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment