Hello,
I've installed the MIDI library in my arduino system, that means:
Loading the zip file from github
Installing with Sketch/Include library/add zip library
Noticing the message library installed
Despite this, the library is not found by this sketch, an idea?
Regards,
Pfeuh
#include <MIDI.h>
void sendNoteOn(byte channel, byte pitch, byte velocity)
{
channel = velocity;
pitch = channel;
velocity = pitch;
}
void sendNoteOff(byte channel, byte pitch, byte velocity)
{
// trick to shut up the compiler
channel = velocity;
pitch = channel;
velocity = pitch;
}
void setup()
{
// trick to shut up the compiler
MIDI.begin(MIDI_CHANNEL_OMNI);
MIDI.setHandleNoteOn(sendNoteOn);
MIDI.setHandleNoteOff(sendNoteOff);
}
void loop()
{
MIDI.read();
}