How can I out put two midi signal in the same time?

How can I output two midi signals at the same time?
I wanna get a midi sound and make a chorus of that midi note and output this two midi sounds at the same time how can I do it?

MIDI doesn’t make a sound. If by “chorus” you mean you want to harmonize the original MIDI notes and then assuming you have a decent algorithm to generate the new notes, you’ll want to use the MidiBuffer::Iterator class to go through a MidiBuffer object to get each event, then MidiBuffer::addEvent() to add events. When you add a new event, make sure the new event’s channel is different from the original, using MidiMessage.getChannel() and MidiMessage.setChannel.

Note that this will break if whatever receiving the MIDI signal is set to receive from Omni.

Thank you for your help