Hi
Well, i know this not an Audio question per se, but i thought this was anyway the right forum to post it on.
I am working on a MIDI Foot Controller.
In the past, with other midi instruments that had nothing to do with arduinos, it happend to me a couple of times that a note "got stuck".
I hope this won't happen with the foot controller, but, just to be on the safe side, i would like to include some kind of reset to it.
I have read a little bit about doing a "soft reset":
asm volatile (" jmp 0");
for what i understand, this brings the sketch again to the beginning, so it's a kind of software reset.
But, as i don't understand that code, and i read several conflicting opinions about it, i am actually a little bit afraid of using it.
Any ideas and experiences with it?
the other idea i had, was to send an ALL NOTES OFF midi command:
0xFF
Would this do the trick?
It would not reset the Arduino, but it would Reset all the MIDI, right?
So any stuck notes would also be reseted?
Hmmm, one more question...
i am sending my midi like this:
Serial.write(cmd);
Serial.write(pitch);
Serial.write(vel);
What would be the correct way to send the 0xFF Reset message?
I assume the 0xFF is the command, so it would go on the "Serial.Write(cmd)", but what about the pitch and the vel, can i just leave them empty?
Any other ideas on how to achieve this reset effect?
Thank you!
=)