Post by JohnG on Jul 5, 2011 15:30:38 GMT
MIDI files; the set-up measure. (part 1)
Definitions.
Before going into detail about what can be contained within a set-up measure, it's probably important to define exactly what is meant by the name. Set-up in this case implies that within this part of the MIDI file there will be instructions to the sound module (e.g. MU128, SC-8850) or software (MS GS synth, SY50-XG, Roland VSC) that will play the music to tell it exactly how it should set itself up, in order that it plays the notes, in the way that I or you, the programmer, or subsequent re-arranger of the file, want it to be played. A Measure or bar is often, but not always, a set of four quarter-notes that beat Strong, Weak, Less strong, Weak to the count of 1, 2, 3, 4. Those of you who can read from a score won't need this last piece of information.
What's it all about?
We will, within our MIDI file, almost certainly want to define how loud the file is to be played and what the relative volumes are between the different instruments that are playing. We will definitely want to define which instrument will play on each of the 16 MIDI channels (more if you're lucky enough to own a 32 or 64 MIDI channel sound module). If our PA system is stereo then we'll want to pan the instruments around the sound stage. If it's mono we may want to pan the music to the left channel and have a click track, maybe for the drummer, on the right or vice versa. Then feed one to the PA the other to a monitor or to headphones.
We may in addition, if our sound module supports it, want to define the FX used such as reverb type i.e. room, hall, plate etc. If we can do this then we probably will want to define just how much of that reverb will apply to each instrument. There could well be other FX that we want to apply too such as chorus.
But, over and above all these, if a MIDI file has been playing before the current file, then we probably need to make sure that any alteration to the default settings of controllers, made by playing that previous file, is either reset or changed to a more suitable setting.
So where are we going to put these commands that set up not only the overall way the sound module responds but also how each channel works within that overall set-up?
The set-up measure.
There's a good argument that says that there should be one musical measure (or bar) of say, 4/4 time, in which all these initiating commands are programmed into the MIDI file as a set-up sequence, and that should be the very first measure of the file. The musical notes (MIDI note on and note off instructions) will then start in bar two. Why not just spread the commands around in the file where they're needed? Well, yes, that can be done too if you like. But, if you've ever tried to modify a file created in this way, because it doesn't play quite the way you want it to on your system, then you'll realise that finding these set-up instructions within each track of your sequencer can be a nightmare and sometimes, when you make a modification, the most unexpected results can ensue because you've missed something in another place in the file. Hands up those who have experienced this.
A long pause?
Of course having a measure at the beginning with no musical notes in it implies that there will be some seconds of silence before the file begins to play. But with the creative use of the MIDI Tempo that should be limited to about two seconds for even the most complex of set-up measures. And, if we're going to record our output to wav or mini-disk or to an mp3 file, then it's possible to remove that silence fairly simply using one of a variety of hardware or software tools. If, like many professionals, you prefer using the sound-module live, then there's probably even a way around this problem of initial silence (if it is a problem for you) by creating a very short set-up measure, of less than a second, then perhaps having the hi-hat count in (tick, tick, tick, tick) whilst the rest of the set-up is done in parallel.
If even that is unacceptable, then we may just create the set-up measure at the start of the very first song in the set (or even in a separate tiny file, transmitted before the first song) and then put appropriate messages at the end of every file so that each new file starts from square one. It may not be necessary to have a 4/4 bar as the set-up measure. It could be 3/4, 2/4 or even as small as 1/8. Its length will depend upon what you need to incorporate in the set-up measure for the sound module or software that you use.
There are many variations and combinations of different ways of doing this set-up, which, I'm aware, many of our more experienced people here are doing right now. And I imagine that, over time, those people have got used to each file's little idiosyncrasies. But what if there were a better way? I maintain that having the set-up measure first and editing it for each file is still the best way. I figure that most people can cope with a two second pause before the count in or before the song starts.
If you start by creating a MIDI file just one measure long with the set-up that suits your sound-module and then copy the song file that you use to measure two, then edit the instrument set-ups to suit yourself, you're likely to end up with good sounding MIDIs all the time. Now that's got to be worthwhile hasn't it?
-----------------------------------------------------------------
This is the first part of a multi-part article.
The second part will follow shortly.
-----------------------------------------------------------------
Definitions.
Before going into detail about what can be contained within a set-up measure, it's probably important to define exactly what is meant by the name. Set-up in this case implies that within this part of the MIDI file there will be instructions to the sound module (e.g. MU128, SC-8850) or software (MS GS synth, SY50-XG, Roland VSC) that will play the music to tell it exactly how it should set itself up, in order that it plays the notes, in the way that I or you, the programmer, or subsequent re-arranger of the file, want it to be played. A Measure or bar is often, but not always, a set of four quarter-notes that beat Strong, Weak, Less strong, Weak to the count of 1, 2, 3, 4. Those of you who can read from a score won't need this last piece of information.
What's it all about?
We will, within our MIDI file, almost certainly want to define how loud the file is to be played and what the relative volumes are between the different instruments that are playing. We will definitely want to define which instrument will play on each of the 16 MIDI channels (more if you're lucky enough to own a 32 or 64 MIDI channel sound module). If our PA system is stereo then we'll want to pan the instruments around the sound stage. If it's mono we may want to pan the music to the left channel and have a click track, maybe for the drummer, on the right or vice versa. Then feed one to the PA the other to a monitor or to headphones.
We may in addition, if our sound module supports it, want to define the FX used such as reverb type i.e. room, hall, plate etc. If we can do this then we probably will want to define just how much of that reverb will apply to each instrument. There could well be other FX that we want to apply too such as chorus.
But, over and above all these, if a MIDI file has been playing before the current file, then we probably need to make sure that any alteration to the default settings of controllers, made by playing that previous file, is either reset or changed to a more suitable setting.
So where are we going to put these commands that set up not only the overall way the sound module responds but also how each channel works within that overall set-up?
The set-up measure.
There's a good argument that says that there should be one musical measure (or bar) of say, 4/4 time, in which all these initiating commands are programmed into the MIDI file as a set-up sequence, and that should be the very first measure of the file. The musical notes (MIDI note on and note off instructions) will then start in bar two. Why not just spread the commands around in the file where they're needed? Well, yes, that can be done too if you like. But, if you've ever tried to modify a file created in this way, because it doesn't play quite the way you want it to on your system, then you'll realise that finding these set-up instructions within each track of your sequencer can be a nightmare and sometimes, when you make a modification, the most unexpected results can ensue because you've missed something in another place in the file. Hands up those who have experienced this.
A long pause?
Of course having a measure at the beginning with no musical notes in it implies that there will be some seconds of silence before the file begins to play. But with the creative use of the MIDI Tempo that should be limited to about two seconds for even the most complex of set-up measures. And, if we're going to record our output to wav or mini-disk or to an mp3 file, then it's possible to remove that silence fairly simply using one of a variety of hardware or software tools. If, like many professionals, you prefer using the sound-module live, then there's probably even a way around this problem of initial silence (if it is a problem for you) by creating a very short set-up measure, of less than a second, then perhaps having the hi-hat count in (tick, tick, tick, tick) whilst the rest of the set-up is done in parallel.
If even that is unacceptable, then we may just create the set-up measure at the start of the very first song in the set (or even in a separate tiny file, transmitted before the first song) and then put appropriate messages at the end of every file so that each new file starts from square one. It may not be necessary to have a 4/4 bar as the set-up measure. It could be 3/4, 2/4 or even as small as 1/8. Its length will depend upon what you need to incorporate in the set-up measure for the sound module or software that you use.
There are many variations and combinations of different ways of doing this set-up, which, I'm aware, many of our more experienced people here are doing right now. And I imagine that, over time, those people have got used to each file's little idiosyncrasies. But what if there were a better way? I maintain that having the set-up measure first and editing it for each file is still the best way. I figure that most people can cope with a two second pause before the count in or before the song starts.
If you start by creating a MIDI file just one measure long with the set-up that suits your sound-module and then copy the song file that you use to measure two, then edit the instrument set-ups to suit yourself, you're likely to end up with good sounding MIDIs all the time. Now that's got to be worthwhile hasn't it?
-----------------------------------------------------------------
This is the first part of a multi-part article.
The second part will follow shortly.
-----------------------------------------------------------------