View Single Post
  #2  
Old 10-23-2013, 11:38 AM
dj dj is offline
Moderator
 
Join Date: Jan 1970
Location: Balderson, Ontario, Canada, 100 kms (60 miles) from Ottawa
Posts: 826
Default Re: Fading midifile volume at the end

Hi, Paolo:

There is no Master Volume continuous controller in the MIDI spec. The CC for Volume controls only each individual channel.

To send a Master Volume (All Channels) message to a device, you would have to use a System Exclusive message, such as:

0xF0 ; SysEx
0x7F ; Realtime
0x7F
; The SysEx channel
0x04
; Sub-ID -- Device Control
0x01
; Sub-ID2 -- Master Volume
0xLL
; Least Significant Bits 0 to 6 of a 14-bit volume
0xMM
; Most Significant Bits 7 to 13 of a 14-bit volume
0xF7
; End of SysEx

When Mark Walsen was developing Composer, he didn't want to get the user into such arcania, so Composer doesn't deal with SysEx.

At the same time, I find that an even fade-out usually requires different curves for each instrument, so individual channel volume fades are usually best.

Hope that helps.

David
Reply With Quote