|
23 | 23 | // enable ble-midi? needs USE_MIDI2
|
24 | 24 | //#define USE_BT_MIDI_ESP32
|
25 | 25 |
|
26 |
| -#define USE_MIDI1 |
27 |
| -//#define USE_MIDI2 |
28 |
| -//#define USE_MIDI3 |
| 26 | +// enable Serial to be able to use on serial-to-midi bridges on PCs |
| 27 | +// like hairless midi or ttymidi |
| 28 | +// does it needs USE_MIDI1 |
| 29 | +#define USE_SERIAL_MIDI_115200 |
| 30 | + |
| 31 | +#define USE_MIDI1 // USB MIDI, needs a serial-to-midi bridge on the other side: hariless midi or ttymidi |
| 32 | +//#define USE_MIDI2 // BLE MIDI: bluetooth is not a good option to run realtime application like midi, so be aware of shit timming and issues(good for a midi controller only) |
| 33 | +#define USE_MIDI3 // real MIDI serial port: connect to your hardware synths via MIDI cable(check midi out schematics for 3.3v) |
29 | 34 |
|
30 | 35 | // wich modules you need acidman?
|
31 | 36 | // PUSH and LED modules require booth PUSH_SPI and LED_SPI to point into some spi device
|
@@ -97,19 +102,26 @@ U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, U8X8_PIN_NONE);
|
97 | 102 |
|
98 | 103 | // Midi device
|
99 | 104 | // initing midi devices
|
100 |
| -//MIDI_CREATE_INSTANCE(HardwareSerial, Serial, MIDI1); |
101 |
| -MIDI_CREATE_INSTANCE(HardwareSerial, Serial2, MIDI1); |
| 105 | +#if defined(USE_MIDI1) // USB |
| 106 | +MIDI_CREATE_INSTANCE(HardwareSerial, Serial, MIDI1); |
| 107 | +#endif |
102 | 108 |
|
103 |
| -#if defined(USE_BT_MIDI_ESP32) && defined(CONFIG_BT_ENABLED) |
| 109 | +#if defined(USE_MIDI2) // Bluetooth |
| 110 | +#if defined(USE_BT_MIDI_ESP32) && defined(CONFIG_BT_ENABLED) |
104 | 111 | BLEMIDI_CREATE_INSTANCE("Aciduino", MIDI2);
|
105 | 112 | #endif
|
| 113 | +#endif |
106 | 114 |
|
107 |
| -// in case we got USB native mode support builtin, use it! |
108 |
| -#if defined(CONFIG_TINYUSB_ENABLED) |
109 |
| -ESPNATIVEUSBMIDI espNativeUsbMidi; |
110 |
| -MIDI_CREATE_INSTANCE(ESPNATIVEUSBMIDI, espNativeUsbMidi, MIDI3); |
| 115 | +#if defined(USE_MIDI3) // Hardware midi |
| 116 | +MIDI_CREATE_INSTANCE(HardwareSerial, Serial2, MIDI3); |
111 | 117 | #endif
|
112 | 118 |
|
| 119 | +// in case we got USB native mode support builtin, use it! note the case of wroom, keep this setup for later other boards |
| 120 | +//#if defined(CONFIG_TINYUSB_ENABLED) |
| 121 | +//ESPNATIVEUSBMIDI espNativeUsbMidi; |
| 122 | +//MIDI_CREATE_INSTANCE(ESPNATIVEUSBMIDI, espNativeUsbMidi, MIDI1); |
| 123 | +//#endif |
| 124 | + |
113 | 125 | // SPI devices
|
114 | 126 | //#define PUSH_SPI SPI
|
115 | 127 | //#define LED_SPI SPI
|
0 commit comments