I’m sure that Cubase should be exporting the automation data to a MIDI file, but it seems that it doesn’t inlcude the first occurance of the data in the file. This is a pain since, like most folk, I use bar 1 as a MIDI instrument set-up bar.
I’m going to experiment with putting all the set-up controller in twice (once to be ignored by the export algorithm and once to be included in the exported file).
The “Merge MIDI in loop” transfers not just the notes from parts on non-muted tracks but also, fortunately for me, transfers all the automation data in lanes to CC data in the merged part. Apart from the initial setting of the automation parameter all other automation data (in the automation lanes) is removed by the function. This is the right thing to do, for my purposes, otherwise I would then have the automation data in twice (once as CCs in the parts and once in the automation lanes).
Of course, if you were wanting to use “Merge MIDI in loop” to merge MIDI parts together, you’d also transfer the part’s automation lane data to CCs in the merged part so would have to remember to transfer it back to the automation lanes afterwards (using the standard MIDI function).