DCSIMG
Sound - Shay Levy

Shay Levy

If you repeat it, PowerShell it!

News


btn_donate_LG

View Shay Levy's profile on LinkedIn Follow Shay Levy at Twitter Shay Levy's Facebook profile Subscribe to my FriendFeed


site statistics




Browse by Tags

All Tags » Sound (RSS)
PowerShell Popcorn
My son heard all the alien beeps and asked me for this one, the Popcorn tune. I couldn't say no :) 1..2 | % { 1..2 | % {900,800,900,700,550,700,450 | % { [console]::beep($_,50); sleep -m 150}; sleep -m 250} 900,1000,1050,1000,1050,1000,1050,900,1000,900,1000,800,900,800,900 | % { [console]::beep($_,50); sleep -m 150} sleep -m 250 1..2 | % {900,800,900,700,550,700,450 | % { [console]::beep($_,50); sleep -m 150}; sleep -m 250} 900,1000,1050,1000,1050,1000,1050,900,1000,900,1000,800,900,1000,1050...
Close Encounters of the PowerShell Kind
Five tones: $notes = 900,1000,800,400,600 $duration = 400,400,400,400,1600 0..($notes.length-1) | % {[console]::beep($notes[$_],$duration[$_]) } Spaceship Siren: 1..10 | % { 370..470 | % { [console]::beep($_,5) }} Talking alien :) 900,500,1000,800,400,600,1200,300,200,500,1100,300 | % {[console]::beep($_,100)} CTP2 Alien: 1..20 | foreach { $rnd = (Get-Random -min 0 -max 20)*100 if ($rnd -eq 0) { sleep -m 10 } else { [console]::beep($rnd,100) } }