Skip to content

Instantly share code, notes, and snippets.

@davewilson
Last active March 17, 2024 15:35
Show Gist options
  • Save davewilson/5612674 to your computer and use it in GitHub Desktop.
Save davewilson/5612674 to your computer and use it in GitHub Desktop.
Super Mario Theme in PowerShell
Function Play-Mario {
[System.Console]::Beep(659, 125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(523, 125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(784, 125);
[System.Threading.Thread]::Sleep(375);
[System.Console]::Beep(392, 125);
[System.Threading.Thread]::Sleep(375);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(392, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(330, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(440, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(494, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(466, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(440, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(392, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(784, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(880, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(698, 125);
[System.Console]::Beep(784, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(587, 125);
[System.Console]::Beep(494, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(392, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(330, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(440, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(494, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(466, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(440, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(392, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(784, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(880, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(698, 125);
[System.Console]::Beep(784, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(587, 125);
[System.Console]::Beep(494, 125);
[System.Threading.Thread]::Sleep(375);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(415, 125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(698, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(625);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(415, 125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(1125);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(415, 125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(698, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(625);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(415, 125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(625);
}
@sephiroth66
Copy link

Love it!
I'm working on adjusting some of the pauses, but note-wise this is beautiful 👍

@Nabop
Copy link

Nabop commented May 9, 2022

Gread Job !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment