2024-10-01 15:24:16 +02:00
|
|
|
|
<#
|
2021-08-18 09:57:39 +02:00
|
|
|
|
.SYNOPSIS
|
2022-12-29 21:46:35 +01:00
|
|
|
|
Plays the Tetris melody
|
2021-10-04 21:29:23 +02:00
|
|
|
|
.DESCRIPTION
|
2022-12-29 21:46:35 +01:00
|
|
|
|
This PowerShell script plays the Tetris melody.
|
2021-08-18 09:57:39 +02:00
|
|
|
|
.EXAMPLE
|
2022-12-29 21:46:35 +01:00
|
|
|
|
PS> ./play-tetris-melody
|
2021-08-18 09:57:39 +02:00
|
|
|
|
.LINK
|
2022-12-29 21:46:35 +01:00
|
|
|
|
https://github.com/fleschutz/PowerShell
|
2022-09-06 21:42:04 +02:00
|
|
|
|
.NOTES
|
|
|
|
|
Author: Markus Fleschutz | License: CC0
|
2021-08-18 09:57:39 +02:00
|
|
|
|
#>
|
|
|
|
|
|
2021-08-18 09:53:49 +02:00
|
|
|
|
[System.Console]::Beep(1320,500)
|
|
|
|
|
[System.Console]::Beep(990,250)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(1188,250)
|
|
|
|
|
[System.Console]::Beep(1320,125)
|
|
|
|
|
[System.Console]::Beep(1188,125)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(990,250)
|
|
|
|
|
[System.Console]::Beep(880,500)
|
|
|
|
|
[System.Console]::Beep(880,250)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(1320,500)
|
|
|
|
|
[System.Console]::Beep(1188,250)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(990,750)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(1188,500)
|
|
|
|
|
[System.Console]::Beep(1320,500)
|
|
|
|
|
[System.Console]::Beep(1056,500)
|
|
|
|
|
[System.Console]::Beep(880,500)
|
|
|
|
|
[System.Console]::Beep(880,500)
|
2023-03-01 10:52:37 +01:00
|
|
|
|
Start-Sleep -milliseconds 250
|
2021-08-18 09:53:49 +02:00
|
|
|
|
[System.Console]::Beep(1188,500)
|
|
|
|
|
[System.Console]::Beep(1408,250)
|
|
|
|
|
[System.Console]::Beep(1760,500)
|
|
|
|
|
[System.Console]::Beep(1584,250)
|
|
|
|
|
[System.Console]::Beep(1408,250)
|
|
|
|
|
[System.Console]::Beep(1320,750)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(1320,500)
|
|
|
|
|
[System.Console]::Beep(1188,250)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(990,500)
|
|
|
|
|
[System.Console]::Beep(990,250)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(1188,500)
|
|
|
|
|
[System.Console]::Beep(1320,500)
|
|
|
|
|
[System.Console]::Beep(1056,500)
|
|
|
|
|
[System.Console]::Beep(880,500)
|
|
|
|
|
[System.Console]::Beep(880,500)
|
2023-03-01 10:52:37 +01:00
|
|
|
|
Start-Sleep -milliseconds 500
|
2021-08-18 09:53:49 +02:00
|
|
|
|
[System.Console]::Beep(1320,500)
|
|
|
|
|
[System.Console]::Beep(990,250)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(1188,250)
|
|
|
|
|
[System.Console]::Beep(1320,125)
|
|
|
|
|
[System.Console]::Beep(1188,125)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(990,250)
|
|
|
|
|
[System.Console]::Beep(880,500)
|
|
|
|
|
[System.Console]::Beep(880,250)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(1320,500)
|
|
|
|
|
[System.Console]::Beep(1188,250)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(990,750)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(1188,500)
|
|
|
|
|
[System.Console]::Beep(1320,500)
|
|
|
|
|
[System.Console]::Beep(1056,500)
|
|
|
|
|
[System.Console]::Beep(880,500)
|
|
|
|
|
[System.Console]::Beep(880,500)
|
2023-03-01 10:52:37 +01:00
|
|
|
|
Start-Sleep -milliseconds 250
|
2021-08-18 09:53:49 +02:00
|
|
|
|
[System.Console]::Beep(1188,500)
|
|
|
|
|
[System.Console]::Beep(1408,250)
|
|
|
|
|
[System.Console]::Beep(1760,500)
|
|
|
|
|
[System.Console]::Beep(1584,250)
|
|
|
|
|
[System.Console]::Beep(1408,250)
|
|
|
|
|
[System.Console]::Beep(1320,750)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(1320,500)
|
|
|
|
|
[System.Console]::Beep(1188,250)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(990,500)
|
|
|
|
|
[System.Console]::Beep(990,250)
|
|
|
|
|
[System.Console]::Beep(1056,250)
|
|
|
|
|
[System.Console]::Beep(1188,500)
|
|
|
|
|
[System.Console]::Beep(1320,500)
|
|
|
|
|
[System.Console]::Beep(1056,500)
|
|
|
|
|
[System.Console]::Beep(880,500)
|
|
|
|
|
[System.Console]::Beep(880,500)
|
2023-03-01 10:52:37 +01:00
|
|
|
|
Start-Sleep -milliseconds 500
|
2021-08-18 09:53:49 +02:00
|
|
|
|
[System.Console]::Beep(660,1000)
|
|
|
|
|
[System.Console]::Beep(528,1000)
|
|
|
|
|
[System.Console]::Beep(594,1000)
|
|
|
|
|
[System.Console]::Beep(495,1000)
|
|
|
|
|
[System.Console]::Beep(528,1000)
|
|
|
|
|
[System.Console]::Beep(440,1000)
|
|
|
|
|
[System.Console]::Beep(419,1000)
|
|
|
|
|
[System.Console]::Beep(495,1000)
|
|
|
|
|
[System.Console]::Beep(660,1000)
|
|
|
|
|
[System.Console]::Beep(528,1000)
|
|
|
|
|
[System.Console]::Beep(594,1000)
|
|
|
|
|
[System.Console]::Beep(495,1000)
|
|
|
|
|
[System.Console]::Beep(528,500)
|
|
|
|
|
[System.Console]::Beep(660,500)
|
|
|
|
|
[System.Console]::Beep(880,1000)
|
|
|
|
|
[System.Console]::Beep(838,2000)
|
|
|
|
|
[System.Console]::Beep(660,1000)
|
|
|
|
|
[System.Console]::Beep(528,1000)
|
|
|
|
|
[System.Console]::Beep(594,1000)
|
|
|
|
|
[System.Console]::Beep(495,1000)
|
|
|
|
|
[System.Console]::Beep(528,1000)
|
|
|
|
|
[System.Console]::Beep(440,1000)
|
|
|
|
|
[System.Console]::Beep(419,1000)
|
|
|
|
|
[System.Console]::Beep(495,1000)
|
|
|
|
|
[System.Console]::Beep(660,1000)
|
|
|
|
|
[System.Console]::Beep(528,1000)
|
|
|
|
|
[System.Console]::Beep(594,1000)
|
|
|
|
|
[System.Console]::Beep(495,1000)
|
|
|
|
|
[System.Console]::Beep(528,500)
|
|
|
|
|
[System.Console]::Beep(660,500)
|
|
|
|
|
[System.Console]::Beep(880,1000)
|
|
|
|
|
[System.Console]::Beep(838,2000)
|
2021-09-27 10:09:45 +02:00
|
|
|
|
exit 0 # success
|