Tuesday, July 8, 2014

Super Mario Theme Song with PowerShell

Here's a little PowerShell script that plays the Super Mario Theme Song!!
I hope you enjoy this as much as I enjoyed making it!!
<##Super Mario Intro ##>
$i = 1
do {$i++
        [console]::beep(659,250) ## E
        [console]::beep(659,250) ## E
        [console]::beep(659,300) ## E
        [console]::beep(523,250) ## C
        [console]::beep(659,250) ## E
        [console]::beep(784,300) ## G
        [console]::beep(392,300) ## G
        [console]::beep(523,275) ## C
        [console]::beep(392,275) ## G
        [console]::beep(330,275) ## E
        [console]::beep(440,250) ## A
        [console]::beep(494,250) ## B
        [console]::beep(466,275) ## A
        [console]::beep(440,275) ## A
        [console]::beep(392,275) ## G
        [console]::beep(659,250) ## E
        [console]::beep(784,250) ## G
        [console]::beep(880,275) ## A
        [console]::beep(698,275) ## F
        [console]::beep(784,225) ## G
        [console]::beep(659,250) ## E
        [console]::beep(523,250) ## C
        [console]::beep(587,225) ## D
        [console]::beep(494,225) ## B
   }until ($i -gt 1)