Playing tone melody with delays #53
Replies: 1 comment 1 reply
-
In principle your use of toneTimer.in(...) could work... but it has some drawbacks:
Note you do not actually need to worry about all the tones at once. Only one is active at any one time. You may want to consider using something like:
and have continuePlayingMySong() index through an array of tone frequencies and lengths, start the next note and return At this point, there are probably many tutorials about how to play a song with Arduino. Usually the tutorials only focus one one task (for example play a song). It should be straightforward (it may not be trivial!) to use an arduino-timer to play songs and do something else at the same time. |
Beta Was this translation helpful? Give feedback.
-
What would be the ideal way of playing some long list of melodies using this libary
Can we keep adding these dynamically ? I am passing the frequency
Beta Was this translation helpful? Give feedback.
All reactions