OK, you asked for it... I'll try to be brief for bandwidth's sake, though the subject is worth several pages (Editor's note : What are U waiting for ? ,o))
A midifile consists in a header followed by one track (format 0) or several ones (format 1). Each part of the file is called a Chunk. The Header Chunk looks like this (all the numbers are hexadecimal, this is specified by the suffix "h") :
Then comes the Chunk of first or only track :
Each event of the track is always preceded by a "delta time" even if this one must be equal to 0. Some events are called 'meta-event' because they aren't Midi messages, but a text, a change of signature or tempo, a mark, etc. They can be recognized by the first byte FFh, followed by a meta-event code, its length (in variable length number), and its data. Here are some of these codes :
Back to Cubase.
We can insert some text in the List Edit (for example "Test"). When exported in the midifile, it's converted into a text meta-event and we will find in the file this serie of bytes :
Method for inserting a copyright into a midifile :
On purpose I cut corners on the famous variable length numbers, in order not to triple the weight of this e-mail, but remember that it only relates to values higher than 127.
Hexadecimal regards...