Go Down

Topic: MIDI was not delcared in this scope, error message (Read 600 times) previous topic - next topic

cdbe3

Hi,

I'm trying to make a MIDI breath controller and I keep getting this message in the Arduino IDE. (see picture). The MIDI library is installed and everything seems to be fine. Plus, the code is not from me (got it on a blog) and I did'nt change anything.

If someone could help me here, I would really appreciate.

Thx so much! :)



Chris

slipstick

Either you didn't copy the code correctly or it has never worked. You need to create a MIDI instance with a command like
Code: [Select]
MIDI_CREATE_DEFAULT_INSTANCE();

If you look at any of the examples that come with the MIDI library you'll see that.

Steve

cdbe3


Go Up