<div dir="ltr"><div>There is no standard, midi keyboards and synths often have multiple curves in multiple strengths to chose from. <br></div><div>Linear, inverse log and log are all valid contenders.</div><div>It all depends on personal preference of the performer.</div><div><br></div><div>As for computation cost, just a tip. <br></div><div>Calculate all values when a curve is chosen and store them in a table. Its only 127 values after all.</div><div><br></div><div>HTH</div><div>Theo<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 5, 2018 at 1:43 AM, John Speth <span dir="ltr"><<a href="mailto:john.speth@andrews-cooper.com" target="_blank">john.speth@andrews-cooper.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_-2926973985649812342WordSection1">
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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().<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks and sorry for the dopey question.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">JJS<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
Synth-diy mailing list<br>
<a href="mailto:Synth-diy@synth-diy.org">Synth-diy@synth-diy.org</a><br>
<a href="http://synth-diy.org/mailman/listinfo/synth-diy" rel="noreferrer" target="_blank">http://synth-diy.org/mailman/<wbr>listinfo/synth-diy</a><br>
<br></blockquote></div><br></div>