In MIDI, all volume-related controllers (note velocity, expression, volume, master volume) are combined; each can be changed independently.
Every GM-compatible synthsizer should support the Master Volume message:
F0 7F 7F 04 01 LL MM F7
where LL
and MM
are lower and upper 7 bits of the 14-bit value.
(Most devices have a 7-bit master volume and just ignore LL
.)
Most MIDI files do not change the master volume; you should be able to just send this message blindly.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…