Author Topic: MIDI_EVENT_PAN vs MIDI_EVENT_DRUM_PAN  (Read 144 times)

gicci

  • Posts: 92
MIDI_EVENT_PAN vs MIDI_EVENT_DRUM_PAN
« on: 29 Aug '22 - 00:06 »
I have some questions regarding the handling of the pan controllers in BASS.
What is the relationship among MIDI_EVENT_PAN and MIDI_EVENT_DRUM_PAN for drum channels?
If MIDI_EVENT_DRUM_PAN for a specific key overrides the pan value set for the channel, sending a new MIDI_EVENT_PAN will reset also all pan values previously set for the keys on the channel?
What does the "128=normal" value?
Thank you.

Ian @ un4seen

  • Administrator
  • Posts: 24730
Re: MIDI_EVENT_PAN vs MIDI_EVENT_DRUM_PAN
« Reply #1 on: 29 Aug '22 - 15:39 »
The MIDI_EVENT_DRUM_PAN value is added to the MIDI_EVENT_PAN value, rather than overriding it. For example, if MIDI_EVENT_PAN = 74 (+10) and MIDI_EVENT_DRUM_PAN is 54 (-10) then the final panning value is 64. If MIDI_EVENT_DRUM_PAN = 128 (the default) then the panning set in the soundfont will be used (on top of MIDI_EVENT_PAN).