I’m looking for advice over the best way to handle OSC messages. Basically I have an OSC Listener class which can process incoming OSC messages. I’d like to be able to process these in a similar way to how MIDI is handled in the demo plugin (and many other places no doubt), i.e. have a buffer of time-stamped OSC messages.
Now this seems like it wouldn’t be too difficult to base code around the analogous MIDI classes, midiCollector, midiBuffer etc. However I’m not sure how to insert / pass my (as yet non-existant) "OSCBuffer"s into the processBlock code as this seems to be handled by juce_VST_Wrapper (and I’d rather not edit that!).
Another solution (which is a step I’d rather avoid) is to convert the OSC messages into MIDI messages and add them to the exising MIDI queue, though I’m not entirely sure how to do that (probably using MidiMessageCollector somehow)…
Anyway, thoughts / advice / experiences greatly appreciated as always. I’m probably making this seem more complicated than it needs to be! Hemmer