Skip to content

Instantly share code, notes, and snippets.

@davewilson
Last active May 25, 2026 08:58
Show Gist options
  • Select an option

  • Save davewilson/5612674 to your computer and use it in GitHub Desktop.

Select an option

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);
}
@Nabop

Nabop commented May 9, 2022

Copy link
Copy Markdown

Gread Job !

@Mhmc-1

Mhmc-1 commented May 25, 2026

Copy link
Copy Markdown

good one

another version based on that's improvement.

[Console]::Beep(659, 240); [Console]::Beep(659, 240); Start-Sleep -m 160
[Console]::Beep(659, 240); Start-Sleep -m 240
[Console]::Beep(523, 240); [Console]::Beep(659, 240); Start-Sleep -m 160
[Console]::Beep(784, 240); Start-Sleep -m 520
[Console]::Beep(392, 240); Start-Sleep -m 520
[Console]::Beep(523, 240); Start-Sleep -m 340
[Console]::Beep(392, 240); Start-Sleep -m 340
[Console]::Beep(330, 240); Start-Sleep -m 340
[Console]::Beep(440, 240); Start-Sleep -m 160
[Console]::Beep(494, 240); Start-Sleep -m 160
[Console]::Beep(466, 240); Start-Sleep -m 55
[Console]::Beep(440, 240); Start-Sleep -m 160
[Console]::Beep(392, 240); Start-Sleep -m 160
[Console]::Beep(659, 240); Start-Sleep -m 160
[Console]::Beep(784, 240); Start-Sleep -m 160
[Console]::Beep(880, 240); Start-Sleep -m 160
[Console]::Beep(698, 240); [Console]::Beep(784, 240); Start-Sleep -m 160
[Console]::Beep(659, 240); Start-Sleep -m 160
[Console]::Beep(523, 240); Start-Sleep -m 160
[Console]::Beep(587, 240); [Console]::Beep(494, 240); Start-Sleep -m 160
[Console]::Beep(523, 240); Start-Sleep -m 340
[Console]::Beep(392, 240); Start-Sleep -m 340
[Console]::Beep(330, 240); Start-Sleep -m 340
[Console]::Beep(440, 240); Start-Sleep -m 160
[Console]::Beep(494, 240); Start-Sleep -m 160
[Console]::Beep(466, 240); Start-Sleep -m 55
[Console]::Beep(440, 240); Start-Sleep -m 160
[Console]::Beep(392, 240); Start-Sleep -m 160
[Console]::Beep(659, 240); Start-Sleep -m 160
[Console]::Beep(784, 240); Start-Sleep -m 160
[Console]::Beep(880, 240); Start-Sleep -m 160
[Console]::Beep(698, 240); [Console]::Beep(784, 240); Start-Sleep -m 160
[Console]::Beep(659, 240); Start-Sleep -m 160
[Console]::Beep(523, 240); Start-Sleep -m 160
[Console]::Beep(587, 240); [Console]::Beep(494, 240); Start-Sleep -m 480
[Console]::Beep(784, 240); [Console]::Beep(740, 240); [Console]::Beep(698, 240); Start-Sleep -m 55
[Console]::Beep(622, 240); Start-Sleep -m 160
[Console]::Beep(659, 240); Start-Sleep -m 240
[Console]::Beep(415, 240); [Console]::Beep(440, 240); [Console]::Beep(523, 240); Start-Sleep -m 160
[Console]::Beep(440, 240); [Console]::Beep(523, 240); [Console]::Beep(587, 240); Start-Sleep -m 340
[Console]::Beep(784, 240); [Console]::Beep(740, 240); [Console]::Beep(698, 240); Start-Sleep -m 55
[Console]::Beep(622, 240); Start-Sleep -m 160
[Console]::Beep(659, 240); Start-Sleep -m 240
[Console]::Beep(698, 240); Start-Sleep -m 160
[Console]::Beep(698, 240); [Console]::Beep(698, 240); Start-Sleep -m 820
[Console]::Beep(784, 240); [Console]::Beep(740, 240); [Console]::Beep(698, 240); Start-Sleep -m 55
[Console]::Beep(622, 240); Start-Sleep -m 160
[Console]::Beep(659, 240); Start-Sleep -m 240
[Console]::Beep(415, 240); [Console]::Beep(440, 240); [Console]::Beep(523, 240); Start-Sleep -m 160
[Console]::Beep(440, 240); [Console]::Beep(523, 240); [Console]::Beep(587, 240); Start-Sleep -m 340
[Console]::Beep(622, 240); Start-Sleep -m 340
[Console]::Beep(587, 240); Start-Sleep -m 340
[Console]::Beep(523, 240); Start-Sleep -m 1450
[Console]::Beep(784, 240); [Console]::Beep(740, 240); [Console]::Beep(698, 240); Start-Sleep -m 55
[Console]::Beep(622, 240); Start-Sleep -m 160
[Console]::Beep(659, 240); Start-Sleep -m 240
[Console]::Beep(415, 240); [Console]::Beep(440, 240); [Console]::Beep(523, 240); Start-Sleep -m 160
[Console]::Beep(440, 240); [Console]::Beep(523, 240); [Console]::Beep(587, 240); Start-Sleep -m 340
[Console]::Beep(784, 240); [Console]::Beep(740, 240); [Console]::Beep(698, 240); Start-Sleep -m 55
[Console]::Beep(622, 240); Start-Sleep -m 160
[Console]::Beep(659, 240); Start-Sleep -m 240
[Console]::Beep(698, 240); Start-Sleep -m 160
[Console]::Beep(698, 240); [Console]::Beep(698, 240); Start-Sleep -m 820
[Console]::Beep(784, 240); [Console]::Beep(740, 240); [Console]::Beep(698, 240); Start-Sleep -m 55
[Console]::Beep(622, 240); Start-Sleep -m 160
[Console]::Beep(659, 240); Start-Sleep -m 240
[Console]::Beep(415, 240); [Console]::Beep(440, 240); [Console]::Beep(523, 240); Start-Sleep -m 160
[Console]::Beep(440, 240); [Console]::Beep(523, 240); [Console]::Beep(587, 240); Start-Sleep -m 340
[Console]::Beep(622, 240); Start-Sleep -m 340
[Console]::Beep(587, 240); Start-Sleep -m 340
[Console]::Beep(523, 240); Start-Sleep -m 1450

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