I use my custom ESP32S3 with Amy and I managed to create a BT MIDI in and out. Usually I use my ESP through UART MIDI out on a pin, but with a call [extern "C" void amy_event_midi_message_received(uint8_t *data, uint32_t len, uint8_t sysex, uint32_t time);] I pass BT MIDI in data to Amy. That works.
Now I need a way to catch Amy's MIDI out data (even if no serial MIDI out pin defined in config), to pass data on BT MIDI out. In that way I assume that I could connect through BT (and UART at the same time) and for eg. try things or create new patch with the online Amy editor (or my custom way with CC controls) without the need to disconnect it from my main synth.
I think it would be as simple as config the amy_external_midi_input_hook. For eg. an amy_external_midi_output_hook which will be called inside midi_out(...) method to pass all data to my function.
I use my custom ESP32S3 with Amy and I managed to create a BT MIDI in and out. Usually I use my ESP through UART MIDI out on a pin, but with a call [extern "C" void amy_event_midi_message_received(uint8_t *data, uint32_t len, uint8_t sysex, uint32_t time);] I pass BT MIDI in data to Amy. That works.
Now I need a way to catch Amy's MIDI out data (even if no serial MIDI out pin defined in config), to pass data on BT MIDI out. In that way I assume that I could connect through BT (and UART at the same time) and for eg. try things or create new patch with the online Amy editor (or my custom way with CC controls) without the need to disconnect it from my main synth.
I think it would be as simple as config the amy_external_midi_input_hook. For eg. an amy_external_midi_output_hook which will be called inside midi_out(...) method to pass all data to my function.