tttapa / MIDI_controller

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

How to Echo MIDI IN to MIDI OUT? #101

Closed nickho74 closed 4 years ago

nickho74 commented 4 years ago

Hi Pieter,

I have been using most of your code in my MIDI project hardware in great success. Thank you !

One questions comes in mind, I have since added in a MIDI IN port into the project.

I would like to know where I can edit or add in in the Sketch? I want to echo the incoming MIDI data from another MIDI hardware, into the existing project hardware. and then together output MIDI. I have built a MIDI IN and MIDI OUT port on the hardware.

I have tested the FortySevenEffects MIDI library using the MIDI.turnThruOn() function and works fine in the project.

But I would like to know if there is a way in your sketch to do the same function.

Thank you.

tttapa commented 4 years ago

The MIDI controller library does not support MIDI in. Its successor, Control Surface does. You can use the MIDI Pipes from the MIDI Routing module.
Example

Control Surface uses the last MIDI interface as its default interface, unless you explicitly set the default. If you have multiple interfaces, it's recommended to add midi.setAsDefault() to your setup (before calling Control_Surface.begin()). Control Surface only initializes and updates its own MIDI interface, so you have to call othermidi.begin() and othermidi.update() yourself.

nickho74 commented 4 years ago

ok thank you.

I will try the Control Surface sketch.