aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_load.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2021-12-13 00:23:46 +0300
committerWohlstand <admin@wohlnet.ru>2021-12-13 00:23:46 +0300
commit597eb41cd6973dc21663bddb4ebe0a746c37f159 (patch)
tree41898210efcdb6b48b9fcd1603884873fdeda48c /src/adlmidi_load.cpp
parent808ade1aef03d91d3d072dfe139155070dce3459 (diff)
downloadlibADLMIDI-597eb41cd6973dc21663bddb4ebe0a746c37f159.tar.gz
libADLMIDI-597eb41cd6973dc21663bddb4ebe0a746c37f159.tar.bz2
libADLMIDI-597eb41cd6973dc21663bddb4ebe0a746c37f159.zip
Added per-bank MT32 defaults option
This option makes MT32 defaults being set: - 127 initial volume - octave-wide pitch bend
Diffstat (limited to 'src/adlmidi_load.cpp')
-rw-r--r--src/adlmidi_load.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/adlmidi_load.cpp b/src/adlmidi_load.cpp
index b2e53cb..f44d90f 100644
--- a/src/adlmidi_load.cpp
+++ b/src/adlmidi_load.cpp
@@ -117,6 +117,7 @@ bool MIDIplay::LoadBank(FileAndMemReader &fr)
synth.m_insBankSetup.scaleModulators = false;
synth.m_insBankSetup.deepTremolo = (wopl->opl_flags & WOPL_FLAG_DEEP_TREMOLO) != 0;
synth.m_insBankSetup.deepVibrato = (wopl->opl_flags & WOPL_FLAG_DEEP_VIBRATO) != 0;
+ synth.m_insBankSetup.mt32defaults = (wopl->opl_flags & WOPL_FLAG_MT32) != 0;
synth.m_insBankSetup.volumeModel = wopl->volume_model;
m_setup.deepTremoloMode = -1;
m_setup.deepVibratoMode = -1;