Created
April 11, 2016 20:01
-
-
Save SadProcessor/d9896309bd5190c2b333c4ee2705f203 to your computer and use it in GitHub Desktop.
PowerShell Timeless classic... EndlessLoop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Endless PowerShell Tetris tune | |
#adapted from https://gist.github.com/XeeX/6220067 | |
function Play-TetrisTuneForever(){ | |
While(1 -eq 1){ | |
[console]::beep(658, 125) | |
[console]::beep(1320, 500) | |
[console]::beep(990, 250) | |
[console]::beep(1056, 250) | |
[console]::beep(1188, 250) | |
[console]::beep(1320, 125) | |
[console]::beep(1188, 125) | |
[console]::beep(1056, 250) | |
[console]::beep(990, 250) | |
[console]::beep(880, 500) | |
[console]::beep(880, 250) | |
[console]::beep(1056, 250) | |
[console]::beep(1320, 500) | |
[console]::beep(1188, 250) | |
[console]::beep(1056, 250) | |
[console]::beep(990, 750) | |
[console]::beep(1056, 250) | |
[console]::beep(1188, 500) | |
[console]::beep(1320, 500) | |
[console]::beep(1056, 500) | |
[console]::beep(880, 500) | |
[console]::beep(880, 500) | |
Start-Sleep -m 250 | |
[console]::beep(1188, 500) | |
[console]::beep(1408, 250) | |
[console]::beep(1760, 500) | |
[console]::beep(1584, 250) | |
[console]::beep(1408, 250) | |
[console]::beep(1320, 750) | |
[console]::beep(1056, 250) | |
[console]::beep(1320, 500) | |
[console]::beep(1188, 250) | |
[console]::beep(1056, 250) | |
[console]::beep(990, 500) | |
[console]::beep(990, 250) | |
[console]::beep(1056, 250) | |
[console]::beep(1188, 500) | |
[console]::beep(1320, 500) | |
[console]::beep(1056, 500) | |
[console]::beep(880, 500) | |
[console]::beep(880, 500) | |
Start-Sleep -m 500 | |
[console]::beep(1320, 500) | |
[console]::beep(990, 250) | |
[console]::beep(1056, 250) | |
[console]::beep(1188, 250) | |
[console]::beep(1320, 125) | |
[console]::beep(1188, 125) | |
[console]::beep(1056, 250) | |
[console]::beep(990, 250) | |
[console]::beep(880, 500) | |
[console]::beep(880, 250) | |
[console]::beep(1056, 250) | |
[console]::beep(1320, 500) | |
[console]::beep(1188, 250) | |
[console]::beep(1056, 250) | |
[console]::beep(990, 750) | |
[console]::beep(1056, 250) | |
[console]::beep(1188, 500) | |
[console]::beep(1320, 500) | |
[console]::beep(1056, 500) | |
[console]::beep(880, 500) | |
[console]::beep(880, 500) | |
Start-Sleep -m 250 | |
[console]::beep(1188, 500) | |
[console]::beep(1408, 250) | |
[console]::beep(1760, 500) | |
[console]::beep(1584, 250) | |
[console]::beep(1408, 250) | |
[console]::beep(1320, 750) | |
[console]::beep(1056, 250) | |
[console]::beep(1320, 500) | |
[console]::beep(1188, 250) | |
[console]::beep(1056, 250) | |
[console]::beep(990, 500) | |
[console]::beep(990, 250) | |
[console]::beep(1056, 250) | |
[console]::beep(1188, 500) | |
[console]::beep(1320, 500) | |
[console]::beep(1056, 500) | |
[console]::beep(880, 500) | |
[console]::beep(880, 500) | |
Start-Sleep -m 500 | |
[console]::beep(660, 1000) | |
[console]::beep(528, 1000) | |
[console]::beep(594, 1000) | |
[console]::beep(495, 1000) | |
[console]::beep(528, 1000) | |
[console]::beep(440, 1000) | |
[console]::beep(419, 1000) | |
[console]::beep(495, 1000) | |
[console]::beep(660, 1000) | |
[console]::beep(528, 1000) | |
[console]::beep(594, 1000) | |
[console]::beep(495, 1000) | |
[console]::beep(528, 500) | |
[console]::beep(660, 500) | |
[console]::beep(880, 1000) | |
[console]::beep(838, 2000) | |
[console]::beep(660, 1000) | |
[console]::beep(528, 1000) | |
[console]::beep(594, 1000) | |
[console]::beep(495, 1000) | |
[console]::beep(528, 1000) | |
[console]::beep(440, 1000) | |
[console]::beep(419, 1000) | |
[console]::beep(495, 1000) | |
[console]::beep(660, 1000) | |
[console]::beep(528, 1000) | |
[console]::beep(594, 1000) | |
[console]::beep(495, 1000) | |
[console]::beep(528, 500) | |
[console]::beep(660, 500) | |
[console]::beep(880, 1000) | |
[console]::beep(838, 2000) | |
} | |
} | |
#Press CTRL-C when you've had enough... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment