Go Down

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

vanakaru

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.

Ragnar


Grumpy_Mike

Quote
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:
http://www.gammon.com.au/electronics

vanakaru


Go Up