Go Down

Topic: New library to play Rtttl ringtones (Read 2191 times) previous topic - next topic


Hi, I just publish a library to play melodies using rtttl format you can find it here

This is an adaptation of a sample scketch from tone library, it uses Rtttl which is a compact format por mono ringtones.

Why Rtttl?
It's compact, its just a string you can paste in your code, no array
construction with frequencies and durations. You can change the octave and tempo
fast and easy.

What change from the original scketch?
This uses [TimerFreetone](http://forum.arduino.cc/index.php?topic=235774.0) by Tim Eckel ,
so it can be used with LedControl, Servos and other libraries that requiere
the use of timers.

Also uses [Flash](http://arduiniana.org/libraries/flash/) library by Mikal Hart
to store the strings in PROGMEM this helps reducing the RAM use, wich is essential
when you use complex code or need to play several melodies.

Delays and while loop has been removed so it could plays asynchronously using the
technique described in  [BlinkWithoutDelay](https://www.arduino.cc/en/Tutorial/BlinkWithoutDelay)
so you can blink leds, move servos, checking inputs while the music plays.



Jan 10, 2020, 09:18 am Last Edit: Feb 18, 2020, 05:48 am by suonerietelefono
The sharing article is really helpful, I have found a good collection to use to make ringtones available and download them at: suonerietelefono.com


There are many libraries for you to download free ringtones for yourself such as zedge, ring320kbs...


Great. I really like your ringtone library

Go Up