Formula for MIDI to Frequency

Discuss Lemur and share techniques.
Post Reply
kabletx
Newbie
Posts: 28
Joined: 06 Feb 2012 02:41

Formula for MIDI to Frequency

Post by kabletx »

Howdy!

I recently posted a template for the Electrix Filter Factory in the user library, and I'm wondering if I can add a Monitor object to get visual feedback on the Filter Frequency. FF is set to CC 5, so I'm dealing with a 0-127 scale, but I have no clue how to convert that to frequency value for the filter...I'm definitely not a math wiz! Any suggestions or help would be most welcome.

Thanks for your time!
axel_liine
Liine Staff
Posts: 126
Joined: 14 Dec 2011 12:12

Re: Formula for MIDI to Frequency

Post by axel_liine »

Unfortunately it really depends on how the target software maps MIDI values to frequency, there's not one single formula that applies to all synths.
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: Formula for MIDI to Frequency

Post by Phil999 »

yes, one has to adapt the mathematical term to each object. For example, if the target has a range between 0.1 Hz and 300 Hz, the mathematical term would be

0.1+Knob.x*299.9

But like Alex said, such simple terms may not exactly correspond to the target's real value.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
kabletx
Newbie
Posts: 28
Joined: 06 Feb 2012 02:41

Re: Formula for MIDI to Frequency

Post by kabletx »

Thanks foe the replies. I sorta figured that would be the case, but I figured I'd give it a shot.
Post Reply