fbpx
Skip to main content

MIDI Forum

MIDI file default p...
 
Notifications
Clear all

MIDI file default program

8 Posts
3 Users
0 Reactions
11 K Views
Max Dobroselsky
Posts: 65
Estimable Member
Topic starter
 

What if a MIDI file doesn't have Program Change events? What a program will be used to make sound? Is it explicitly specified somewhere in the MIDI specs or it's completely up to a synthesizer that will produce sound while the file is playing?

 
Posted : 15/07/2021 11:24 am
Geoff
Posts: 1039
Noble Member
 

There is nothing in the midi specs, although note that:

A: If the playback system has had nothing previously set, then the channels will be set to 0 (zero) which for GM will be Piano.

or

B: If something has already been played, then the channels will still be set to whatever they were just using, and that will be used.

MIDI does not set very much unless it's explicitly told to. There are defaults for things like time base, tempo and such like.

Geoff

 
Posted : 15/07/2021 1:24 pm
Max Dobroselsky
Posts: 65
Estimable Member
Topic starter
 

@Geoff, thanks for the reply!

[quotePost id=9768]If the playback system has had nothing previously set, then the channels will be set to 0 (zero) which for GM will be Piano.[/quotePost]

Is it just a rule of thumb or all playback systems must set program to zero at start? As far as I understand, if there are no any spec on that, the behavior is totally up to synthesizer. So it can set program to 100 if it's built in this way. Am I right?

 
Posted : 15/07/2021 2:14 pm
Geoff
Posts: 1039
Noble Member
 

I suppose that's so.

Any software would normally initialise data to zero, In MIDI terms, for PC, then just happens to be Piano. I would not expect any sensible software to initialise to anything else. As far as PC (Instrument) is concerned, Piano is probably a reasonable default choice anyway.

A Sound Module could well default to a specific setup. The Roland LAPC-I card I use (MT-32 compat) does default the channels to:

(1 to 16)

1: Not set
2: Slap Bass 1
3: Str Sect 1
4: Brs Sect 1
5: Sax 1
6: Ice Rain
7: Elec Piano 1
8: Bottleblow
9: Orche Hit
10: Percussion

but that setup seems pretty arbitrary to me?

Just to see what's there, I've just tried my Yamaha MU90r unit in it's default XG mode and the parts there are:

1: Bright
2: Syn Str2
3: Fretless
4: Contrbs
5: ChoirAah
6: - 9: GranPno
10: StandKit
11: GrandPno
12: FastResB
13: FastResB
14: 16+2"2/3
15: PulseClu
16: GrandPno

(some of those are certainly XG banked sounds, not GM).

BUT - are those default settings likely to be of any use? I don't think they'd be any use to me.

Geoff

 
Posted : 15/07/2021 3:34 pm
JohnG
Posts: 225
Estimable Member
 

According to the MIDI specification, if no Program Change (preceded by Bank Select messages if necessary) is issued to change the 'instrument' used, then the default is grand piano.

If a file has been played previously using a MIDI file player, and that file changed the voices on the various channels using Program Changes and no intervening GM reset was issued, then the player will continue using the already selected voices.

If a GM reset SysEx is issued then all 'instruments' should revert back to piano again.

That's why a GM reset at the start of every SMF, before the various instrument allocations, is a good idea.

JohnG.

 
Posted : 16/07/2021 1:13 am
Max Dobroselsky
Posts: 65
Estimable Member
Topic starter
 

Thanks for your answers, guys!

@JohnG, but what about equipment of @Geoff? As we can see, default programs on many channels are not the Grand Piano. Does it violate the specs? Also can you please say where Grand Piano is specified as the default program in the MIDI specification?

 
Posted : 16/07/2021 1:23 am
JohnG
Posts: 225
Estimable Member
 

Max,

I don't recall it being a specific requirement until the GM2 spec. came out, which dates it to about 1999.
In that spec, (now at version 1.2 (2007) ) on page 5, where it defines the Program Change message, it states:

"3.2 Program Change Message
[required]
Default Value: 1 (00H)"

See "General_MIDI_Level_2_07-2-6_1.2a.pdf"

So, any device that came out before GM or GM2 would probably not default to this value.
I suspect that applies to the MT32, that was very early as I recall.

Any MIDI sound card or module that displays GM or GM2 should conform to the standard though.

Very early devices, pre GM1, didn't even follow the instrument mapping now commonplace.
So a Program Change of 00H wouldn't neccesarily invoke Piano.
I don't think my TX81z did, nor do many early synthesizers.

I vaguely recall having to alter the Program Changes for various early internal PC cards to get the sound you wanted up until GM1 came out and sound cards started to conform to it. So, for me, from the mid eighties to the late nineties.

Take a look at the 'voice' assignments for a DX-7 MkI or MkII.
My ancient AN1x doesn't follow the rules either. Nor does my VL70m and several others.

JohnG.

 
Posted : 16/07/2021 3:11 am
Max Dobroselsky
Posts: 65
Estimable Member
Topic starter
 

@JohnG, @Geoff, thanks you a lot for such detailed explanation!

 
Posted : 16/07/2021 5:07 am
Share: