This python script converts MIDI files to Gcode your printer can play, transforming it into a music player that sounds like R2D2 !!It will use X,Y and Z as 3 separate "voices" thus making your printer a polyphonic instrument.Forked from the known Mid2CNC by Michtom (among others) I added a graphical interface because I hate writing commands...So basically you just launch the script and click the right type of machine, then select what file you want as input, where you want to save the output and you will have a nice Gcode file for your printer.xxxxxEDIT:I forgot to include the easygui library. So now it should work "out of the box".Important:You have to place the printhead approximately in the middle of the platform and the nozzle at least a few mm above it.The head will move around XY and Z will never get closer than the start point.You don't need to home the axes (stay in the middle) and you don't need to put the heat on (no extrusion will occur)There are a few bugs and not all midi files will give good results. Also my code sucks, but hey, it works. Kinda...I enclose a bunch of files I know work with an Ultimaker Original.The mp3 file is my recording of the Imperial March (J.Williams), concerto for three axis and plywood.The whole thing is available here:https://github.com/mpatoulachik/MIDI-to-CNCFeel free to fix/improve!It should work on any non-delta printer, just edit the parameters in mid2cnc.pyI wonder if this could be done for a delta printer (type kossel/rostock etc.) ???
Technical
You will need:
- Some MIDI files (.mid)
- Python 2.7
Free installation of song list, ringtone sounds for hot and hot phones in 2021 please refer to website <a href="https://klingeltonekostenlos.de/">kostenlose klingeltöne</a>
cronos45
almost 9 years
i got it to work once then is sends echo imperial.mdi etc and does nothing
FabLabFaenza
over 9 years
<p>Hi, I tried using Music for 3D Printer, but Convert_With_GUI.py seems not working! <br>What version of python do I need to run it? </p><p>I'm using the 3.4.3 release, but seem crashing each time i try to open it. Do you know if something changes using the 2.7.9 version?</p>