You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(NB dont include the "inverted".. if you just want the "note" to be the same as the input.)
(NB - seems a bit silly to be adding this to a very old thread... :) )
Activity
jeinstei commentedon Oct 17, 2025
So more a feature request for a flag in evdev to invert an axis and/or buttons?
midimonster/backends/evdev.c
Line 204 in c247b03
phedders commentedon Oct 17, 2025
You can write a very simple two line lua filter to do it.
phedders commentedon Oct 17, 2025
I havent tested this but soemthing like
function invert(v)
output ("inverted"..intput_channel(),1-v);
end
load that as a [lua ....] source - you can set the default-hander to invert if you like
then use a chain such as
midiX.ch0.note{1..10} > invert.{1..10}
invert.inverted{1..10} > midiY.ch2.note{1..10}
(NB dont include the "inverted".. if you just want the "note" to be the same as the input.)
(NB - seems a bit silly to be adding this to a very old thread... :) )
jeinstei commentedon Oct 17, 2025
I’m not sure why out would be a filter as opposed to just adding the feature though— i might just write a pr