Add play-happy-birthday.ps1

This commit is contained in:
Markus Fleschutz 2021-08-16 17:15:31 +02:00
parent 2918d30249
commit 783ccc5d40
3 changed files with 44 additions and 0 deletions

View File

@ -150,6 +150,7 @@ open-file-explorer.ps1, starts the Microsoft File Explorer
open-recycle-bin.ps1, starts the File Explorer with the recycle bin folder
play-beep.ps1, plays a beep sound
play-files.ps1, plays the given audio files
play-happy-birthday.ps1, plays the Happy Birthday song
play-mission-impossible.ps1, plays the Mission Impossible theme
play-m3u.ps1, plays the given playlist (M3U file format)
play-mp3.ps1, plays the given sound file (MP3 file format)

Can't render this file because it has a wrong number of fields in line 79.

View File

@ -12,6 +12,7 @@ Mega Collection of PowerShell Scripts
* [list-voices.ps1](Scripts/list-voices.ps1) - lists the installed text-to-speech (TTS) voices
* [play-beep.ps1](Scripts/play-beep.ps1) - plays a beep sound
* [play-files.ps1](Scripts/play-files.ps1) - plays the given audio files
* [play-happy-birthday.ps1](Scripts/play-happy-birthday.ps1) - plays the Happy Birthday song
* [play-mission-impossible.ps1](Scripts/play-mission-impossible.ps1) - plays the Mission Impossible theme
* [play-m3u.ps1](Scripts/play-m3u.ps1) - plays the given playlist (M3U file format)
* [play-mp3.ps1](Scripts/play-mp3.ps1) - plays the given sound file (MP3 file format)

View File

@ -0,0 +1,42 @@
<#
.SYNOPSIS
play-happy-birthday.ps1
.DESCRIPTION
Plays the Happy Birthday song
.EXAMPLE
PS> .\play-happy-birthday.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#>
[System.Console]::Beep(1059.274, 300)
[System.Console]::Beep(1059.274, 200)
[System.Console]::Beep(1188.995, 500)
[System.Console]::Beep(1059.274, 500)
[System.Console]::Beep(1413.961, 500)
[System.Console]::Beep(1334.601, 950)
[System.Console]::Beep(1059.274, 300)
[System.Console]::Beep(1059.274, 200)
[System.Console]::Beep(1188.995, 500)
[System.Console]::Beep(1059.274, 500)
[System.Console]::Beep(1587.117, 500)
[System.Console]::Beep(1413.961, 950)
[System.Console]::Beep(1059.274, 300)
[System.Console]::Beep(1059.274, 200)
[System.Console]::Beep(2118.547, 500)
[System.Console]::Beep(1781.479, 500)
[System.Console]::Beep(1413.961, 500)
[System.Console]::Beep(1334.601, 500)
[System.Console]::Beep(1188.995, 500)
[System.Console]::Beep(1887.411, 300)
[System.Console]::Beep(1887.411, 200)
[System.Console]::Beep(1781.479, 500)
[System.Console]::Beep(1413.961, 500)
[System.Console]::Beep(1587.117, 500)
[System.Console]::Beep(1413.961, 900)
exit 0