PDA

View Full Version : XG/GM Reset info...save with midis?


bnjiman80
12-05-2003, 06:36 PM
Hi all

I'm going to start gigging soon and I want to put in XG resets in front of all my midis on my QY100. I'm worried that some songs might change different parameters, affecting the way the next song comes out.

I have a sys-ex string in a "dummy" mid (i.e. no notes) to do a reset, but I don't know how to save it onto my other midi files.

Do these resets sit on a certain track like other midi events?

Any ideas! Thanks alot, Ben

savinallmylu
12-06-2003, 12:42 AM
if it doesnt' do it at home why woudl it do it live? I'd just try it out at home.

ZelRiptha
12-06-2003, 01:36 PM
Yes, bnjioman80.

You can send the sysex on any track - just be aware that there is a subsequent delay in the device to execute the command - approximately 50ms.

The sysex is f0 43 10 4c 00 00 7e 00 f7 for my S-YXG50.

Here's a quote from the XG spec:


XG System On
11110000 F0 Exclusive status
01000011 43 YAMAHA ID
0001nnnn 1n Device Number
01001100 4C Model ID
00000000 00 Address High
00000000 00 Address Mid
01111110 7E Address Low
00000000 00 Data
11110111 F7 End of Exclusive

F0H,43H,1nH,4CH,00H,00H,7EH,00H,F7H
When this message is received, the sound module mode will be reset to XG, and the tone generator
will be reset to the XG default state, with the exception of MIDI Master Tuning.
Master Tuning can be adjusted in the following three ways.
1) XG Master Tuning (F0,43,1n,4C..)
2) MIDI Master Tuning (F0,43,1n,27..)
3) Setting from the front panel of the device
1) is for setting the tuning of the song, and 2) and 3) are for tuning the system (i.e., tuning
the pitch to match acoustic instruments).
These are not memorized separately; the last-received message will take priority.
When XG System On is received, the value last specified by 2) and 3) must be restored.
For example if MIDI Master Tune was used to change a setting of 440.0 Hz to 442.0 Hz, and
subsequently XG Master Tune was used to change this to 339.0 Hz, the tone generator must
return to 442.0 Hz when XG System On is received.
Since approximately 50 ms is required for this message to be executed, an appropriate interval
must be allowed before the next message is transmitted.


You could also send a GM reset:

f0 7e 7f 09 01 f7

I think it requires a 250ms delay to take effect. You should send this one first if you do both.

More from the spec:


GM System On
F0H,7EH,7FH,09H,01H,F7H
This message returns all settings to their default values, with the exception of MIDI Master
Tuning.
MIDI Master Tuning is handled in the same way as when XG System On is received.
11110000 F0 Exclusive status
01111110 7E Universal Non-realtime ID
01111111 7F Device ID
00001001 09 Sub ID1
00000001 01 Sub ID2
11110111 F7 End of Exclusive


You can take a look at this dummy XG file to see an example of this. (It was created by Yamaha as an example of how to initialize a device.

Xg_temp2.mid (http://home.houston.rr.com/oehl/mid/Xg_temp2.mid)

bnjiman80
12-07-2003, 11:24 AM
Originally posted by savinallmylu
if it doesnt' do it at home why woudl it do it live? I'd just try it out at home.

I have been using my laptop to play the midis through a sequencer on the pc i.e. transmitting events to the box. When things have gone weird, I have used the function on the sequencer "send GM reset" or "Send XG reset" to re-set the box via the serial connector before playing the song again. However, I'm now using the box's own sequencer, and I wouldn't want to stop between songs to ask it to perform a reset!

ZelRiptha...thanks alot. I will try to copy the GM reset code you have supplied, and the XG reset I have, onto a track and insert them at the beginning of my performance midis. :D