Hi.
I am using a deek-robot micro (arduino-micro clone). Outputting over TX through Midi interface (midimate).
I tried this Code i found on this forum, just for testing basic output of midi control change messages.
It should output CC23 on channel 4 with value 42 every second. I thought so at least.
Messages are arriving, but as you can see in the attached midi-monitoring-image many other messages, like aftertouch etc are beeing received.
Where are those messages coming from and how can i eliminate them?
Thanks for any help ...
void setup()
{
Serial1.begin(31250); // Speed of MIDI serial port
}
void loop()
{
controlSend(23,42); // e.g. Controller Number 23, Value 42 output every 1000 miliseconds
delay(1000);
}
void controlSend(byte CCnumber, byte CCdata) {
byte CCchannel = 0xB3; // 0xB3 stands for programchange on Midi channel 4
Serial1.write(CCchannel);
Serial1.write(CCnumber);
Serial1.write(CCdata);
}