To send MIDI output from MuLab to your external MIDI gear, first make sure you've enabled the relevant MIDI ports via the main MuLab menu -> MIDI Setup.
Now in the Project Modular Area, inserting a Project Event Output module can send to one of the enabled MIDI output ports.
You can create multiple ones, each for targetting a different MIDI output port.
Then map this Project Event Output module to any of the MIDI output ports you enabled in step 1.
To do so edit (double-click) that Event Output module.
All events reaching the input of any such Project Event Outputs are sent to the respective MIDI output.
If you want to send events from a deeper modular level, make sure these events are sent to the event output of that child module, do the same in the parent module and repeat these steps, going 1 modular level upwards each time, until you get in the Project Modular Area and there you can connect it to the Project Event Output = MIDI Output.
As it takes some extra steps to send events in a deeper modular level to MIDI output, cf. the previous paragraph, as of MuLab 10.3 there also is the Direct MIDI Output module.
It does what the name says: Any events coming into a Direct MIDI Output are directly sent to MIDI output without the need to traverse modular levels upwards.
You can insert a Direct MIDI Output in any modular area (except PolySynth) and thus send events directly to MIDI output from there.
It's also easy to setup a rack to directly output to MIDI without the need to go into the modular area:
Make sure a rack shows its Event Output (right-click rack out display) and then simply choose a Direct MIDI Out.
If the chosen one does not yet exist as a module in the respective modular area, it is automatically set up.
Note that these MIDI Output modules can also be used as a target for sending MIDI clock.
To set the MIDI clock output module, right-click the tempo display in the transport panel.
If you want to send MIDI clock to multiple MIDI outputs then use a 'proxy' Patch Point module and connect it to all the MIDI outputs you want to send MIDI clock to.
For detailed info on using MIDI channels, see the
Composer doc page.