Page 1 of 1

Formula for MIDI to Frequency

Posted: 06 Feb 2012 02:57
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!

Re: Formula for MIDI to Frequency

Posted: 06 Feb 2012 09:21
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.

Re: Formula for MIDI to Frequency

Posted: 06 Feb 2012 10:51
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.

Re: Formula for MIDI to Frequency

Posted: 07 Feb 2012 03:25
by kabletx
Thanks foe the replies. I sorta figured that would be the case, but I figured I'd give it a shot.