3D Printer Music

I was working on a custom script to automate knocking parts off the print bed into a tray so I could easier manage remote prints when I stumbled on the musical features of g-code.

Here are my references:

See it in Action!

Here is my g-code. Copy to the end of your Printer Settings > Custom G-code > End G-code in your slicer.


M300 P522 S587 #play baby shark
M300 P522 S659
M300 P261 S784
M300 P261 S784
M300 P261 S784
M300 P130 S784
M300 P261 S784
M300 P130 S784
M300 P261 S784
M300 P261 S587
M300 P261 S659
M300 P261 S784
M300 P261 S784
M300 P261 S784
M300 P130 S784
M300 P261 S784
M300 P130 S784
M300 P261 S784
M300 P261 S587
M300 P261 S659
M300 P261 S784
M300 P261 S784
M300 P261 S784
M300 P130 S784
M300 P261 S784
M300 P130 S784
M300 P261 S784
M300 P261 S784
M300 P261 S784
M300 P1043 S740