Skip to content

Hid-K/MidiViaUART

Repository files navigation

MidiViaUart

This software provides data to virtual MIDI port from UART.

Usage:

java -jar MidiViaUART-1.0.jar -p [Midi port name]

Currently not available to directly connect midi device to UART (because of used libraries limitation), so you need to use adapter, made from ArduinoMega, which repeats signal with adaptive BAUD (115200).

#define MIDI_SERIAL Serial1
#define MIDI_BAUD 31250

void setup() {
  Serial.begin(115200);
  MIDI_SERIAL.begin(MIDI_BAUD);
}

void loop() {}

void serialEvent1()
{
  Serial.write((uint8_t)MIDI_SERIAL.read());
}

If you're using an Arduino adapter - you may need to amplify signal from tour device by transistor. MIDI signal amplifier

Debug

U can enable debug messages with -l/--logLevel option:

  • OFF (most specific, no logging)
  • FATAL (most specific, little data)
  • ERROR
  • WARN
  • INFO
  • DEBUG
  • TRACE (least specific, a lot of data)
  • ALL (least specific, all data)

More info about debug levels on Log4j documentation website

U may get more usage info from --help

About

Provide ability to connect midi-unit via UART

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages