midi-libary - hairless-midiserial

Hi,

I'm trying out the midi-lib with hairless-serialmidi for monitoring. midi-lib seems to be simple and nice, but somehow hairless-serialmidi shows me warnings which i do not understand..

case 1

#include <MIDI.h>
MIDI_CREATE_DEFAULT_INSTANCE();

void setup() {
  MIDI.begin(1); 
}

void setup() {
  MIDI.sendNoteOn(42, 127, 1);    // Send a Note (pitch 42, velo 127 on channel 1)
  delay(200);     
  MIDI.sendNoteOff(42, 0, 1);     // Stop the note  
}

Here it lookes like that
.. some midi data seems to arrive, but what about the pitch-bend?? I didn't send that (?)

I think that it has to do with the baud-rate.. but which one should i select in the hairless-serialmidi?

but somehow hairless-serialmidi shows me warnings which i do not understand.

So you are keeping them a secret in case we can understand them?

That code needs another delay after the note off otherwise the code will immediately send a note on again and it will be as if the note off never happened.

oh, sorry . i have posted a link to a screeenshot.. anyways, here is the warning message:

+5.602 Warning: got a status byte when we were expecting 1 more data bytes, sending possibly incomplete
+5.602 Serial In: System Message #2: 10 %3

.. when I press my button a second time it says:

+5.832 Warning: got a status byte when we were expecting 1 more data bytes, sending possibly incomplete
+5.832 Serial In: Ch 11: Pitch bend 10

. when I press my button a second time it says:

What button?
Their is no button in the sketch you posted.

"it says" - What is it? Where are these warnings appearing?

They both indicate that you are sending incomplete MIDI messages, but without seeing the code that is generating them we can't tell where the error is. You might have even failed to set the baud rate of the sender to match the baud rate that hairless is expecting.

First glance shows you have 2 setup functions...

--Michael

Maybe the two "(Not Connected)" drop-down boxes have something to do with the problem?