Make your 3D printer play music. Using the sounds a printer motor makes naturally its possible to convert a song into G-code that tells the printer to move along its axes in a way that creates a song. The provided G-code is for the Age of Empires II Theme song.
- Under the slicer configuration settings go to printer settings.
- Under printer settings, select custom G-code.
- Here you will insert the G-code on the next line after G28.
- Type G28 after the last line in the G-code if you want your printer to re-home after the song.
- Save, and name the printer setting Imperial March.
- Now when you load an object to print and are ready to slice it select Imperial March as your printer setting in the Slic3r menu.
- Once you select start print the printer will home all axes and then begin playing while your extruder warms up! Before the song plays it will go to its starting position to verify the print bed dimensions. Once the song is done it will re-home all axes and then begin your print.
The instructions demonstrate the use of this code using Repetier and Slic3r. I don't know how well it will work on other platforms.
I've noticed when loading the .nc file if you copy and paste into your custom g-code sometimes the code is too long and will not paste all at once. It may take copy and pasting portions of code into the custom code a few parts at a time.
This code was generated to the dimensions of a printrbot simple's print bed. Given that this is a small four by four inch print bed there shouldn't be any points in the code that is out of range for most printers ,however, I do advise that you use it at your on risk.
I would also like to give credit to HomeConstructor for the software I used to convert MIDI to g-code. Here is a link: