microsoft / pxt-bluetooth-midi

A Bluetooth Midi package for Microsoft Make Code
https://pxt.microbit.org/pkg/microsoft/pxt-bluetooth-midi
MIT License
47 stars 18 forks source link

Bug when I let a button pressed to generate a note #2

Closed Steph77 closed 7 years ago

Steph77 commented 7 years ago

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

pelikhan commented 7 years ago

Could you share the javascript of your project -- or copy the shared project url?

Steph77 commented 7 years ago

https://pxt.microbit.org/_esLdJWCpxWUx

Steph77 commented 7 years ago

I test it on garage band on an Ipad

pelikhan commented 7 years ago

See updated library.