What is the simplest way to convert MIDI bend data into something useful like a frequency ratio inside a MIDIFunc
? Assuming a 2-semitone bend range, you can do bend / (8192 / 2)
converted to a frequency ratio with .midiratio
. Bend semitone ranges seem to vary depending on hardware. I’m guessing this is the reason why we don’t have a built-in method to handle this convertion. Would it be worth adding an operator like .bendratio(2)
that take a semitone range as argument and calculates a frequency ratio from -/+8192 range pitchbend values?