small changes

This commit is contained in:
2022-01-21 17:29:41 -06:00
parent 6f49a8ad15
commit 31262cdfb1
4 changed files with 30 additions and 3 deletions

View File

@@ -69,8 +69,9 @@ void play_note(double frequency, double duration){
}
void play_song(Note *song, int size){
for(int i = 0; i < size; i++){
void play_song(Note *song){
static int i = 0;
while(song[i].freq != T){
play_note(song[i].freq, song[i].duration);
}
}