Go Down

Topic: Is it possible to send MIDI while note is on? (Read 477 times) previous topic - next topic


I have not used the Arduinos for a year and have not looked into the new Arduino 1.01.
In the past I have used MIDI send for various projects. I have written the code so that after I send note on I use delay() to set the length of the note. This however causes Arduino to wait while on delay so not other commands could be sent.
I wonder if there is a better way to send note on/note off so while  we wait for the note off other notes could be sent?
Like I play note on Channel 1 duration - delay(100) - and I could send a note on channel 2; then note off on channel 1 and so on.



after I send note on I use delay() to set the length of the note.

That is where you are going wrong. Using delay() in effect stops you from doing anything else.

Nick Gammon

Please post technical questions on the forum, not by personal message. Thanks!

More info:


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131