Track sending MIDI events to external device

Hi all,

I searched on the forum but I find nothing related.

I have a Clip type::midi inside my project and I would like that this clip (or better the track where this midi clip is) is sending midi message on a midi port and on a midi channel.

In fact I would like that this track can drive an external device.

Thanks in advance!

Call TrackOutput::getPossibleOutputDeviceNames (tracks, devices, aliases, hasAudio, hasMidi);

That will give you a list of devices.

Then call track->getOutput().setOutputToDeviceID (deviceID); with the appropriate midi device.