Replies: 1 comment 1 reply
-
Question for related repo: Arduino-AppleMIDI
I did try this in the past, but dynamic object creation conflicts with the memory management of microcontrollers (the libs were created for Arduino's R3 with Ethernet shield). This library and Arduino-AppleMIDI are designed and build with no dynamic object creation or inheritance - avoiding a Stack crash. That said, microcontrollers are getting bigger qua memory and cpu and OS capabilities, opening the door for dynamic allocation. Go ahead and try, a report back - I'd love to learn from your experience |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello my device can connect either ethernet or wifi (esp32 + w5500)
My understanding is that the MIDI object are created statically by calling
APPLEMIDI_CREATE_INSTANCE
Is there a way to instanciate this dynamically using EthernetUDP in case the ethernet connection is establish and equally with WiFiUDP in case WiFI connection is made
Otherwise, I think I have to declare twice the interface which would consume a lot of memory.
APPLEMIDI_CREATE_INSTANCE(EthernetUDP, ETHMIDI, "AppleMIDI-Arduino", DEFAULT_CONTROL_PORT);
APPLEMIDI_CREATE_INSTANCE(WiFiUDP, WIFIMIDI, "AppleMIDI-Arduino", DEFAULT_CONTROL_PORT);
Any idea/thought or advise welcome :-)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions