rockandroll
New member
I've got a project that works exactly perfectly with my Teensy 3.2, so long as i'm using something like bome's midi keyboard to spit midi values at it.
However, when I attach it to a keyboard, no reaction whatsoever. I've got power into the Teensy, since I don't get any out of the keyboard.
I can attach this keyboard to my PC and use MidiOX to check the incoming midi values and I'm definitely getting identical output at least as far as channel, pitch and velocity go, so it's not like I'm just not getting anything out of the keyboard.
This can't be too complicated, I'm sure I just missed something essential.
Is there a difference between keyboard USB-OUT midi values and computer generated ones?
If you've worked with keyboards before, I would appreciate your assistance.
I've attached the simplest form of code I could reproduce this problem with, in case I'm just not listening to what it's saying.
However, when I attach it to a keyboard, no reaction whatsoever. I've got power into the Teensy, since I don't get any out of the keyboard.
I can attach this keyboard to my PC and use MidiOX to check the incoming midi values and I'm definitely getting identical output at least as far as channel, pitch and velocity go, so it's not like I'm just not getting anything out of the keyboard.
This can't be too complicated, I'm sure I just missed something essential.
Is there a difference between keyboard USB-OUT midi values and computer generated ones?
If you've worked with keyboards before, I would appreciate your assistance.
I've attached the simplest form of code I could reproduce this problem with, in case I'm just not listening to what it's saying.
Code:
/*
*/
void setup() {
usbMIDI.setHandleNoteOff(myNoteOff)
usbMIDI.setHandleNoteOn(myNoteOn)
}
void loop() {
usbMIDI.read();
pinMode(13,OUTPUT);
}
void myNoteOn(byte channel, byte note, byte velocity)
{
digitalWrite(13,HIGH);
}
void myNoteOff(byte channel, byte note, byte velocity)
{
digitalWrite(13,LOW);
}