My goal is to figure out a way to calculate the midi cc number for a desired delay time millisecond. I realize most people prefer to tweak their Moogerfoogers in real time, but I was looking for a way to program presets for songs that would give me close to the exact tempo. This may come in handy for some people that wish to do the same or are having issues syncing delay time in other ways.
I’ve been out of school for 8 years and am very rusty at math. Please correct me if I’m wrong! I did round the slopes to more manageable numbers, so it is not 100% accurate. I have not tested it on my MF-104M since I am waiting for the midi processor to arrive. The two equations are:
Short switch
Midi CC# = (ms x 45.5083) - 1820
Long switch
Midi CC# = (ms x 22.7542) - 1820
You should be able to just plug in the ms that you want and come out with the correct CC#. If you only have the BPMs, you can use a delay time calculator like the site here http://web.forret.com/tools/bpm_tempo.asp
I’m going to write this out in detail so it is easier to check my math.
The short/long switch switches between 40ms - 400ms and 80ms - 800ms. The Midi CC #s used are 0-16383 for both short and long. I used the slope-intercept form to come up with the numbers. Here’s the math:
Short
I used the time and midi numbers to create two points on a graph. (X is delay time and Y is midi CC#)
(40,0) (400,16383)
Now I need to find the slope.
M = (Y2-Y1)/(X2-X1)
M = (16383-0)/(400-40)
M = 45.5083
Next I need to find the Y-intercept
Y = MX + B
0 = 45.5083(40) + B
B = -1820
This leaves me with the equation
Y = 45.5083 (X) = 1820
[/list][/i]
Long
I used the time and midi numbers to create two points on a graph. (X is delay time and Y is midi CC#)
(80,0) (800,16383)
Now I need to find the slope.
M = (Y2-Y1)/(X2-X1)
M = (16383-0)/(800-80)
M = 22.7542
Next I need to find the Y-intercept
Y = MX + B
0 = 22.7542(40) + B
B = -1820
This leaves me with the equation
Y = 22.7542 (X) = 1820
[/list][/i]