Hey guys. I can't believe it has been fours years since I first got my very first Arduino to run the toneMelody sketch.
And now, it's my turn to return the favor and say thank you. So please accept my Library.
The Problem
I realized that I wanted to play some music while doing others things, like listening to the Serial monitor or displaying an OLED or even running a Servo motor. The weak tone() function made it hard to write/read music notes in a neat, readable fashion. Not to mention it requires delay to get the noteDurations just right.
I decided it was enough, and so I finished a user-friendly Musical library for Arduino in one month. I've even added some funny functions like reverse(), which plays music backward.
Features
- pause/play music
- play music forwards and backwards
- skip to a specfic time in the song
- add percussion instruments
- play more than one note at the same time
- No extra hardware
All you need is an Arduino, a resistor, and a speaker. Simple
Download library here:
MusicWithoutDelay Library
Don't forget to star this project on Github