I’ll give you a beep!

First number sets the pitch, second the tone length

[console]::beep(500,300)

[console]::beep(2100,300)

[console]::beep(500,300)

[console]::beep(2100,300)

You can use it in a script to warn you if something needs to be alarmed, or you could go all morse-code like a freakin’ morse-guy!

Iterate it over a for loop to make it Space Invaders:

$pitch=2200
for ($x=0 ;$x -le 10; $x++)
{
        [console]::beep($pitch,200)
        $pitch=$pitch-200
}

And by the way, if you want your Mikrotik router to play a song when it’s about time, you could schedule a script, like:

 :for i from=1 to=3 step=1 do={
 :beep frequency=880 length=494ms;
 :delay 100ms;
 :beep frequency=1000 length=494ms;
 :delay 100ms;
 :beep frequency=1200 length=494ms;
 :delay 100ms;
 }
 :beep frequency=1400 length=494ms;
 :delay 100ms;
:beep frequency=1520 length=494ms;
 :delay 100ms;

-of course you have a Mikrotik router!

More articles

Optional features

Check available optional features: DISM /Online /Get-Capabilities Install an optional feature: DISM /Online /Add-capability /capabilityname:Media.MediaFeaturePack~~~~0.0.1.0

Read More »