Skip to content

Instantly share code, notes, and snippets.

@SadProcessor
Created April 11, 2016 20:01
Show Gist options
  • Save SadProcessor/d9896309bd5190c2b333c4ee2705f203 to your computer and use it in GitHub Desktop.
Save SadProcessor/d9896309bd5190c2b333c4ee2705f203 to your computer and use it in GitHub Desktop.
PowerShell Timeless classic... EndlessLoop
#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