Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

commented Aug 28, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.