Converter from Nokia ringtones to Mikrotik script

Hello everybody, I wrote VB Script that convert Nokia ringtones in RTTTL format to Mikrotik script. VB script reads song in RTTTL from StdIn and generate Mikrotik script to StdOut.

Zip includes:

  • rtttl2mikrotik.vbs - VB script
  • rtttl2mikrotik.cmd - help CMD script for user-friendly converting
  • test.txt - text file with test song in RTTTL

For song converting use ‘rttttl2mikrotik.cmd test.txt’.

It is free for using and free for modifications. Free for everything. No commerce about it.

Some informations are inside the VB script.

Please, help me to improve it - I’m not programator.

Enjoy Nokia melodies on your routerboards :sunglasses:
rtttl2mikrotik.zip (3.14 KB)

If you could make the script work in two phases, it would make it tons more awesome than it already is (wait… I forgot to mention - THAT’S AWESOME!!! - … ok, as I was saying…):

  • one to convert the ringtone to a comma separated list of beep frequencies
  • and then a second one that turns that list into a RouterOS script.

This would allow you to easily port the script to a different ROS version, should MikroTik alter the syntax, and (more importantly!!!) allow OTHER programs to potentially use those frequencies to form the ringtone. Imagine for example a C# CLI program that uses the Console.beep() method accordingly.