Generalise the Velocity module to include a mapping curve
Nikolozi
The Velocity module can transform MIDI note velocity by clamping to range, offsetting and randomising. But it can be made even more flexible and that flexibility can be applied to not just velocity but also aftertouch and other MIDI CC (or even note numbers).
Samuel brought this up recently, and it seems one of the main uses of the velocity processors is remapping physical MIDI keyboard velocity response curves to match the way the user strikes the keys.
We can take inspiration from Logic Pro's Velocity Processor and Midi Tools from the Atom 2 developer.
The MIDI Source's module mapping curve can be used as a starting point and provide features such as:
- [min, max] range
- Offset
- Random
- Gain/Bias mapping