Can anyone help me out with how to do this ?
: Can anyone help me out with how to do this ?
Classically, you would use interrupts.
If your code to play music plays each note it should be just a matter of looking at the manuals to see how you can generate fast enough interrupts.
But if you use a self-contained library with code like:
play(music);
unless it has an option to run in the background, you could put the music in a separate thread.
Thomas Kay
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
: Can anyone help me out with how to do this ?
Classically, you would use interrupts.
If your code to play music plays each note it should be just a matter of looking at the manuals to see how you can generate fast enough interrupts.
But if you use a self-contained library with code like:
play(music);
unless it has an option to run in the background, you could put the music in a separate thread.
Thomas Kay
code to work with ?. Up to now i have written the
music note by note but i am also trying to include
wav or midi files as well.
using this library, easy