Midi velocity limit, compression, expansion
-
I would like to make 3 sliders, all to control the input midi velocity:
Slider 1: Increase/Decrease (this slider moves the input velocity values for a certain amount, up or dow)
This means that the midi velocity that enters the Sampler gets changed so the sampler triggers a different velocity layer/different sampleSlider 2: Compress/Decompress (this will move velocity values apart from the middle position)
Middle position is by default 64, so if compressed then every midi velocity value below and above 64 will get closer to 64, and if decompressed the values will go in the opposite directionSlider 3: This slider will move the middle position from 64 up and down (this will change which input midi velocities go up or down when compressing and decompressing)
First is this possible, then how the script should look?
-
First is this possible
Yes
then how the script should look?
There are multiple ways to do it, but basically you'll be using the
Message.setVelocity()
function within theon note on
callback. You'll want to put this in a separate script from your UI script. -
@d-healey Thanks David.