Hi all,
I try to send MIDI over the USB port of a Teensy-3.6. I use the following simple test script:
On Linux I am searching for the alsa MIDI port like this:
So I have my Teemsy on port hw:1,0,0 and started a simple test to see if there are note-on/note-offs:
But nothing happens... there are no MIDI events.
Has anybody an idea what I am doing wrong?
TIA, Holger
I try to send MIDI over the USB port of a Teensy-3.6. I use the following simple test script:
Code:
#include <MIDI.h>
#include <midi_UsbTransport.h>
static const unsigned sUsbTransportBufferSize = 16;
typedef midi::UsbTransport<sUsbTransportBufferSize> UsbTransport;
UsbTransport sUsbTransport;
MIDI_CREATE_INSTANCE(UsbTransport, sUsbTransport, MIDI);
void setup() {
Serial.begin(115200);
MIDI.begin();
Serial.println("Arduino ready.");
}
void loop() {
Serial.println("*");
MIDI.sendNoteOn(68, 100, 1);
delay(500);
MIDI.sendNoteOff(68, 100, 1);
delay(500);
}
On Linux I am searching for the alsa MIDI port like this:
Code:
$ amidi -l
Dir Device Name
IO hw:1,0,0 Teensy MIDI MIDI 1
So I have my Teemsy on port hw:1,0,0 and started a simple test to see if there are note-on/note-offs:
Code:
$ amidi -p hw:1,0,0 -d
But nothing happens... there are no MIDI events.
Has anybody an idea what I am doing wrong?
TIA, Holger