[sdiy] MIDI volume to volts formula
ezion67 at gmail.com
Tue Jun 5 19:36:00 CEST 2018
There is no standard, midi keyboards and synths often have multiple curves
in multiple strengths to chose from.
Linear, inverse log and log are all valid contenders.
It all depends on personal preference of the performer.
As for computation cost, just a tip.
Calculate all values when a curve is chosen and store them in a table. Its
only 127 values after all.
On Tue, Jun 5, 2018 at 1:43 AM, John Speth <john.speth at andrews-cooper.com>
> I have been having a difficult time finding a workable formula for
> converting the MIDI velocity value (the third byte in a note on/off
> message) to a Vpp value. Does anybody know the mathematical formula for
> this conversion? Something like Vpp = func(velocity). Let’s assume
> Vpp(max, when velocity is 127) is 1.0V.
> The reason I need to know is I have device that I can control frequency in
> terms of Hz and velocity in terms of Vpp. I’m not sure if I need a
> function based on log10() or antilog10().
> Thanks and sorry for the dopey question.
> Synth-diy mailing list
> Synth-diy at synth-diy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Synth-diy