I want to create a MIDI merge box, using two serial ports on an Arduino for input, and a single output. Would I have to duplicate the whole library and call each one independently for each port?
Yes, however you will have to specify a way to pass the serial port as an argument of the constructor, in order to use two objects at the same time. Replace the USE_SERIAL_PORT macro to select which port to send the data to.
Version 4.0 and higher have now the support for multiple MIDI Ports, check the DualMidiMerger example.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.