waytoocrowded
Member
I'm working on a controller for hardware synths. I'm using the UART to transmit midi. The controller only sends midi. I'm not certain whether this is a Teensy issue or a problem with my external hardware. It's my first project so thought I'd start here in case I'm missing something.
The problem I'm having is not all hardware is responding to the midi message being sent. Using a midi to usb interface with my computer and logging with MIDI Monitor (http://www.snoize.com/MIDIMonitor/), the messages are successful every time. Most of my other hardware responds to the messages every time however one does not. It never responds to the messages from Teensy but does respond to messages from other hardware. Additionally, it will respond to the message sent by Teensy if I connect to a different piece of hardware that has a MIDI thru jack and then connect that thru jack to it.
My code is transmitting on midi channel one. I tried the synth on both omni mode and set to channel one.
My questions are:
1. Is this likely to be Teensy related or the synth that is not responding? Or combination?
2. Are there suggested steps I can take to debug this issue?
I'm a beginner with hardware so any tips on debugging are appreciated. My first thought was maybe Teensy isn't providing a high enough voltage to the midi jack pin 4 and some devices could deal with that while others couldn't and using the thru jack amplified that enough to work. Not sure how to test that or if even a reasonable idea.
The good news is it works with a bit of a hack. Would be nice to find a more direct solution and understand the issue. Thanks for any suggestions.
Teensy 3.1
Arduino 1.0.5
Teensyduino 1.19
Using MIDI library
Wired as described in MIDI library example for output: 220ohm resistors between Tx and 5v, plus ground. https://www.pjrc.com/teensy/td_libs_MIDI.html
Short example source code to illustrate issue:
The problem I'm having is not all hardware is responding to the midi message being sent. Using a midi to usb interface with my computer and logging with MIDI Monitor (http://www.snoize.com/MIDIMonitor/), the messages are successful every time. Most of my other hardware responds to the messages every time however one does not. It never responds to the messages from Teensy but does respond to messages from other hardware. Additionally, it will respond to the message sent by Teensy if I connect to a different piece of hardware that has a MIDI thru jack and then connect that thru jack to it.
My code is transmitting on midi channel one. I tried the synth on both omni mode and set to channel one.
My questions are:
1. Is this likely to be Teensy related or the synth that is not responding? Or combination?
2. Are there suggested steps I can take to debug this issue?
I'm a beginner with hardware so any tips on debugging are appreciated. My first thought was maybe Teensy isn't providing a high enough voltage to the midi jack pin 4 and some devices could deal with that while others couldn't and using the thru jack amplified that enough to work. Not sure how to test that or if even a reasonable idea.
The good news is it works with a bit of a hack. Would be nice to find a more direct solution and understand the issue. Thanks for any suggestions.
Teensy 3.1
Arduino 1.0.5
Teensyduino 1.19
Using MIDI library
Wired as described in MIDI library example for output: 220ohm resistors between Tx and 5v, plus ground. https://www.pjrc.com/teensy/td_libs_MIDI.html
Short example source code to illustrate issue:
Code:
#include <MIDI.h>
const int midiChannel = 1;
void setup() {
MIDI.begin();
}
void loop() {
MIDI.sendNoteOn(60, 99, midiChannel);
delay(1000);
MIDI.sendNoteOff(60, 99, midiChannel);
delay(1000);
}