*** Note Length ***
Music note length will be controlled by giving a specific distance to move. That distance will depend on the length of the note desired and the IPM required for that note. Divide the IPM by 60 to get IPS(inches per second), then multiply by the number of seconds desired.
For example, say we want the 3rd octave of C to play for 0.5 seconds.
0.3924 IPM / 60 = 0.00654 IPS ----> 0.00654 IPS x 0.5 seconds = 0.00327 Inches
Gcode example: G91 G01 X.00327 F.3924
G91 turns on incremental move, G01 is a linear move, X.00327 is the distance to travel in the X axis, and F.3924 is the feed rate in inches per minute.
Inches per Second -
--------------------- -1- ------ -2- ------ -3- ------ -4- ------ -5-
A -- 0.0825/60 --- 0.001375 - 0.00275 -- 0.0055 --- 0.011 ---- 0.022
A# - 0.0874/60 -- 0.001457 - 0.002914 - 0.005828 - 0.011656 - 0.023312
B -- 0.0926/60 -- 0.001543 - 0.003086 - 0.006172 - 0.012344 - 0.024688
C -- 0.0981/60 -- 0.001635 - 0.00327 -- 0.00654 -- 0.01308 -- 0.02616
C# - 0.1039/60 -- 0.001732 - 0.003464 - 0.006928 - 0.013856 - 0.027712
D -- 0.1101/60 -- 0.001835 - 0.00367 -- 0.00734 -- 0.01468 -- 0.02936
D# - 0.1167/60 -- 0.001945 - 0.00389 -- 0.00778 -- 0.01556 -- 0.03112
E -- 0.1236/60 -- 0.00206 -- 0.00412 -- 0.00824 -- 0.01648 -- 0.03296
F -- 0.1310/60 -- 0.002183 - 0.004366 - 0.008732 - 0.017464 - 0.034928
F# - 0.1387/60 -- 0.002312 - 0.004624 - 0.009248 - 0.018496 - 0.036992
G -- 0.1470/60 -- 0.00245 -- 0.0049 --- 0.0098 ---- 0.0196 ---- 0.0392
G# - 0.1557/60 -- 0.002595 - 0.00519 -- 0.01038 -- 0.02076 -- 0.04152