MIDI to G-code for P1S/X1C (beta)

Hi Y’all,

I have been working on this project for the past few months, and I finally have a decent program. You can use it Here. in order to use this, you need to have a single track .mid file that is relatively small. If you adjust the value for the velocity, the music gets quieter, but the highest posable note for your printer get higher. In general, a value of about 700 mm/s is about right, but for some songs with high notes, you may need to go as low as 500 mm/s.

Currently, my main problem is with efficiency. The P1S and X1C have no program that is remotely like M300 (the standard g-code music command), and I can’t figure out the syntax to make a macro in the gcode to replace it. my current system wrights a new line of code for every half-vabration, so the files are very large (~8 sec is about 4500 lines).

If you would like to mess with the code, you can download the original Lua files Here. I hope y’all have fun!