Hardware controlled plugin

Hey all!
Recently noticed many companies like TC electronics making specific hardware units for their audio plugins, doesn’t seem to be a simple MIDI message but something more specific. I’m wondering if anyone here has done something like that or if thats even possible to do in the JUCE framework. Any help on getting started would be awesome.

You can approach it from MIDI and OSC perspective, which IMO will be way easier to implement, or you can either go for a serial communication approach (i.e directly communicating with USB). But that probably means you’ll have to write your own communication thread as you don’t wanna do it in the audio or in the main thread, and then deal with the OS specifics: accessing serial ports works different in Win, macOS and Linux