Another bug, when i let the button B pushed, it make noise like i was tapping without stopping and garage band detect a problem and stop songs.
I had the same problem when i developped my arduino midi BLE piano. I solved the problem by using variables to memorize if key is pressed.
to make it transparent for student, i made one function per note, this is a copy/paste of the code (i'm not a great programmer...)
midi.txt
Another bug, when i let the button B pushed, it make noise like i was tapping without stopping and garage band detect a problem and stop songs. I had the same problem when i developped my arduino midi BLE piano. I solved the problem by using variables to memorize if key is pressed. to make it transparent for student, i made one function per note, this is a copy/paste of the code (i'm not a great programmer...) midi.txt