I am just looking into the MidiMessage class, because I want to program an arpeggiator with JUCE.
I realized, that MidiMessage is using malloc internally. As far as I know, malloc is not lock free.
So you are not allowed to create or copy a MidiMessage on the audio thread.
Am I correct here?
How do you guys deal with that? Do you create a separate Midi thread, which is separated from the audio thread? What do you think is the best way?