I’ve got a small problem - I want my sketch to play a tune in the background.
If sth happens it shall play a short sound, but the background-track should not stop and continue where it was at the moment (or maybe even just continue).
Is there a function in the ArduboyPlaytune.h library, that allows stuff like that?
A second sound-layer so to speak.
thanks in advance!
ArduboyPlaytune allows you to play a two part music score in the background using playScore(). You can also play single tones in the background using tone() while the score continues to play. (Actually, tone() mutes the second score channel temporarily to play the tone.)
So yes, it can do exactly what you’re asking for. See the README file in the repository for more info.