Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
4a4cf4f6
Commit
4a4cf4f6
authored
Feb 08, 2017
by
Albert Gräf
Browse files
Enable -legacy behavior of bendin (fixes #245).
parent
a243cb31
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/x_midi.c
View file @
4a4cf4f6
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment