
9
2
You can add this to the end script for any printer that has a buzzer and can use M300 commands. It will play the Super Mario Bros jingle that plays when you complete a level and slide down the flagpole. Hence the name...Flagpole Fanfare. You can download the .gcode file, or copy/paste the code from below:
;SMB_Flagpole_Fanfare:d=4,o=5,b=145:
M300 S196.0 P156 ;G3
M300 S261.6 P156 ;C4
M300 S329.6 P156 ;E4
M300 S392.0 P156 ;G4
M300 S523.3 P156 ;C5
M300 S659.3 P156 ;E5
M300 S784.0 P413 ;G5
M300 S659.3 P413 ;E5
M300 S207.7 P156 ;G#3
M300 S261.6 P156 ;C4
M300 S311.1 P156 ;D#4
M300 S415.3 P156 ;G#4
M300 S523.3 P156 ;C5
M300 S622.3 P156 ;D#5
M300 S830.6 P413 ;G#5
M300 S622.3 P413 ;D#5
M300 S233.1 P156 ;A#3
M300 S293.7 P156 ;D4
M300 S349.2 P156 ;F4
M300 S466.2 P156 ;A#4
M300 S587.3 P156 ;D5
M300 S698.5 P156 ;F5
M300 S932.3 P413 ;A#5
M300 S000.0 P001;silence
M300 S932.3 P156 ;A#5
M300 S000.0 P001;silence
M300 S932.3 P156 ;A#5
M300 S000.0 P001;silence
M300 S932.3 P156 ;A#5
M300 S000.0 P001;silence
M300 S1046.5 P700 ;C6
Sheet music was found here:
http://www.mariopiano.com/mario-sheet-music-flagpole-fanfare.html
This explains how to use M300 commands:
https://reprap.org/wiki/G-code#M300:_Play_beep_sound
This is the chart that I used to convert music notes to frequency values:
http://glassarmonica.com/science/frequency_midi.php
You can test this or any other M300 commands using this awesome site:
http://ddrboxman.github.io/RepRapRingtone/
Cover photo was found here:
https://static.miraheze.org/allthetropeswiki/1/1d/Maestro_Mario_4189.png
Picture was made into 3D STL here:
https://www.selva3d.com/
Enjoy!
Originality of the Model
The author declares that this work is their personally shared model
This model is licensed under the following terms:
No Copyright.
Models(2)
- marioMusic.stl
1.01 MB
2025-06-14
- SMBflagpoleFanfareM300.gcode
0.76 KB
2025-06-14


