Pages: [1]   Go Down
Author Topic: arduino MIDI input  (Read 819 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys!

I've encounter a bunch of problems during my arduino-job, so, here i am.

I've read almost all the topics that refers to arduino-midi but, however, i'm stuck.

My problem is: i want to send program changes from my guitar pedalboard to arduino, and enlight the led if is right.

Now, my code is

Code:
#include <MIDI.h>
#define nove 9


void setup() {
 
 MIDI.begin();
 pinMode(nove, OUTPUT);
 
}

void loop() {
 
  MIDI.read();
  if(MIDI.getType()==ProgramChange)
    digitalWrite(nove, HIGH);
}

But it still doesn't work.

My board is an arduino duemilanove w/ATmega328.

I hope you help me guys smiley
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

  • What does your circuit look like?
  • What midi library are you using and what version?
  • What behavior are you seeing currently?
Disclaimer: I'm also struggling to get MIDI input working, so don't expect to much from me smiley
Logged

Pages: [1]   Go Up
Jump to: