Closed tdammers closed 5 years ago
Thanks the DSP part looks good.
I'll split the MOD-gui into a separate commit though. It's incomplete (missing thumbails, icons) and should probably use a knobs (not a 1-127, 0-127 LED display).
OK, I've just merged the first part 91a20fe106.
I'll postpone the MOD HTML-UI. The recent addition of "MIDI Choke filter" also needs one.
Sounds good. The GUI part I did more or less blind, because my setup has only the generic GUI (I probably need to look into my ardour build), so I basically copied the one from velocityfilter, and of course I made mistakes. Sorry for the inconvenience.
On Fri, Sep 13, 2019, 16:47 Robin Gareus notifications@github.com wrote:
OK, I've just merged the first part 91a20fe https://github.com/x42/midifilter.lv2/commit/91a20fe106bb9dcd9a1377b6b5ddcb636c9f7a61 .
I'll postpone the MOD HTML-UI. The recent addition of "MIDI Choke filter" also needs one.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/x42/midifilter.lv2/pull/24?email_source=notifications&email_token=AAK6HR7GROQO2ZJTSSQMMN3QJORY5A5CNFSM4IWM42K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6VH26Y#issuecomment-531266939, or mute the thread https://github.com/notifications/unsubscribe-auth/AAK6HR6X33COGDJIQNHAVLLQJORY5ANCNFSM4IWM42KQ .
I added a little "velocity gamma" filter.
This applies a "gamma curve" to all velocities, which is useful to adapt the velocity response to various plugins and keyboards.
The extreme ends of the velocity curve (0 and 127) are left unchanged, but the center (127) is boosted at lower gamma settings, creating a "harder" touch, and at higher settings, the reverse happens, creating a "softer" touch. Setting gamma to 0 will map all input velocities to 127 (x ^ 0 == 1). Gamma = 1 keeps velocities unchanged (x ^ 1 == x).
The formula is pretty much exactly the same as for gamma correction in image processing.