RouterOS beeper player

Prince of Persia

The DOS game’s own speaker line, two octaves up: the title theme, slowing where the game slows, then a strain of the ending music, stopped on its high G.

Your score
Space to play / stop
Note—Freq—Bar—
Download .rsc

On the router: paste the script into a terminal, or upload the file and run it.

Script output

    Write your own

    Ask for a tune you may arrange: your own, one out of copyright, or one you are licensed to use.

    Have a MIDI file? altucor’s converter turns it into a script.

    How it works

    One command sounds one tone: :beep frequency=<hertz> length=<time>; the beeper plays one note at a time.

    :delay is the clock. A beep starts the tone and returns at once, so every note is a beep followed by a delay of the same length and a small gap.

    Most tunes here are written out note by note, a beep and a delay each; some also come as code, with loops, tables and functions, that plays the very same notes. Download any of these and run it in a terminal.