mapping MIDI velocity to 0. to 1. range (non-linear)
Dec 05 2008 | 7:16 pm
I want to efficiently map MIDI velocity (0 to 127) into an amplitude range from 0 to 1. I want it to be a non-linear mapping.
I'm doing this:
input_value (0 to 127 MIDI velocities) | [pow 4.] | [/ 260144640.] | output_value (0. to 1. for use with a [*~] object)
Is there a more efficient way to do this using standard math objects?
Also, how would I write the above using the [expr ] object?
Thanks in advance, Mitch