You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void setup() {
midiusb >> pipes >> midiser; // all incoming midi from USB is sent to serial
//midiusb << pipes << midiser; // all incoming midi from Serial is sent to USB
//midiusb >> pipes >> midiusb; // all incoming midi from USB is looped back
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just working on addition of a Soft Serial port to this Sketch using MIDI Pipes example.
Here we have merged USB+SoftSerialPort+Buttons >> Din Out.
*/
#include <Control_Surface.h>
#include <SoftwareSerial.h>
SoftwareSerial VirtualSerial(8, 3); // RX, TX
USBMIDI_Interface midiusb;
HardwareSerialMIDI_Interface midiser = Serial1;
MIDI_PipeFactory<1> pipes;
void setup() {
midiusb >> pipes >> midiser; // all incoming midi from USB is sent to serial
//midiusb << pipes << midiser; // all incoming midi from Serial is sent to USB
//midiusb >> pipes >> midiusb; // all incoming midi from USB is looped back
midiusb.begin();
midiser.begin();
VirtualSerial.begin(31250);
}
void loop() {
midiusb.update();
//midiser.update();
{
if (VirtualSerial.available())
Serial1.write(VirtualSerial.read());
}
}
Beta Was this translation helpful? Give feedback.
All reactions