RouterOS beeper player

Super Mario Bros, oldschool

IanH wrote it from memory during a MikroTik training course and posted it to the forum, promising accurate notes later. It has circulated ever since; here it is exactly as found.

Source: IanH’s post on the MikroTik forum

Your score
Space to play / stop
NoteFreqLine
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.