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

@@ -57,6 +57,8 @@ Note t2n1 ={G3, S/3}, t2n46={Ab3,S/3}, t2n2 ={A3, S/3}, t2n47={Bb3,S/3}, t2n3 ={
t2n41={D4, Q}, t2n42={F4, Q}, t2n43={Bb4, Q}, t2n44={D5, Q}, t2n45={F5, Q},
t2n61={Bb5, W}, t2n62={B5, Q}, t2n63={B5, Q}, t2n64={B5, Q}, t2n65={C6, W};
Note song3[100] = { {G3, Q}, {}};
void printHelp() {
printf("*Commands*\n\r");
printf("'rmw {hex address}' - Reads mem at a given address\n\r");

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);
}
}