EDIT: killing the ableton live prefs file did the job. everything works now
hi, so this is the code so far
garageband sees it, midimonitor sees it but ableton live sees no midi activity whatsoever...
is there something missing to make this fit the midiprotocol?
#include <MIDI.h>
int blackButton = 5;
int redButton = 8;
int blackButtonState = 0;
int redButtonState = 0;
void setup() {
MIDI.begin();
pinMode(blackButton, INPUT);
pinMode(redButton, INPUT);
}
void loop(){
int tempBlackState = digitalRead(blackButton);
if(blackButtonState != tempBlackState){
blackButtonState = tempBlackState;
if (blackButtonState == HIGH) { // check if the input is HIGH (button released)
MIDI.send(NoteOff,1,0,1); //will trigger note2 with 255 velocity on channel 1.
} else {
MIDI.send(NoteOn,1,127,1); //will trigger note2 with 0 velocity on channel 1.
}
}
int tempRedState = digitalRead(redButton);
if(redButtonState != tempRedState){
redButtonState = tempRedState;
if (redButtonState == HIGH) { // check if the input is HIGH (button released)
MIDI.send(NoteOff,2,0,1); //will trigger note2 with 255 velocity on channel 1.
} else {
MIDI.send(NoteOn,2,127,1); //will trigger note2 with 0 velocity on channel 1.
}
}
}
}