3.6 using Midi_basic_IO sketch, not blinking LED. Sanity Check.

Status
Not open for further replies.

mk519

New member
Forgive this very basic question, but i just got a teensy 3.6 with the intention of building a midi controller. Just for a sanity check i wanted to make sure i was able to blink the LED via my DAW by sending it midi data. I sent it a F#3 note as that is note 42 to blink the LED according the example Midi_basic_IO sketch included with teensyduino. I was unable to get it to blink.

Thinks i made sure of

-made sure midi libraries were installed
-made sure sketch uploaded correctly
-selected USB type: midi when uploading sketch
-made sure teeny midi showed up in DAW
-checked with every note and 127 velocity
-checked midi monitor to make sure notes are being sent


Im left scratching my head, i feel like something is going past me. Is this example sketch not meant to blink the LED via USB? This is making me feel green with teensys
 
Last edited:
I think you are sending usbMIDI from your DAW but the sketch appears to be for hardware MIDI (through the Tx/Rx pins).

You just need to change the function calls to usbMIDI... but here's a version with only usbMIDI:
Code:
#define LED 13   		// LED pin on Arduino board

void setup() {
  pinMode(LED, OUTPUT);

}

void loop() {
  if (usbMIDI.read()) {
    digitalWrite(LED,HIGH);     // Blink the LED
    usbMIDI.sendNoteOn(42,127,1);  // Send a Note (pitch 42, velo 127 on channel 1)
    delay(1000);		// Wait for a second
    usbMIDI.sendNoteOff(42,0,1);   // Stop the note
    digitalWrite(LED,LOW);    	
  }
}
 
Last edited:
Try File > Examples > Teensy > USB_MIDI > PrintIncoming.

After it's running, open the Arduino Serial Monitor. Watch what it prints as your DAW sends MIDI messages.

Maybe use that example code as a start for your project?
 
Status
Not open for further replies.
Back
Top