tttapa / MIDI_controller

This is a library for creating a MIDI controller using an Arduino or Teensy board.
GNU General Public License v3.0
402 stars 70 forks source link

MIDI read #24

Closed VictorCasadoZ closed 6 years ago

VictorCasadoZ commented 6 years ago

Hello,

I was eondering how I can do a MIDI.read() (or something similar) to read the MIDI messages that Traktor sends to the Arduino and then use it.

In my void setup I inicialized with MIDI.begin(); So now only with MIDI.read() can I get the MIDI messages that Traktor send to the Arduino?

Thank you so much!

tttapa commented 6 years ago

What board are you using?
MIDI input is currently not supported.

VictorCasadoZ commented 6 years ago

Mega

tttapa commented 6 years ago

MIDI input is discarded by the library. You can just change this function to allow for MIDI input, and then use the MIDI library. https://github.com/tttapa/MIDI_controller/blob/604fdda6a7d475de6c603cf8e0942111c24b6826/src/MIDI_Interfaces/SerialMIDI_Interface.h#L11-L18

VictorCasadoZ commented 6 years ago

Ok, but how I can open the incoming data communication, what should I have to change there?

tttapa commented 6 years ago

Just comment out the entire function. Then in your main .ino sketch, add code for MIDI input using your MIDI library of choice.

VictorCasadoZ commented 6 years ago

So I uncomment the whole function and then for the MIDI input I use other MIDI library, right?

tttapa commented 6 years ago

Yes.

VictorCasadoZ commented 6 years ago

Ok, it is working! Thank you so much!