aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-04-11 00:40:55 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-04-11 00:40:55 +0300
commita074c7f2163def562a78ebf4c75e412580dd3118 (patch)
treeae8c0a7d5006516036f0a8f3cf7c8ed21bf3e7c9 /src/adlmidi.cpp
parente81541bc74e2083afba8a38ab364e98b39c32b70 (diff)
downloadlibADLMIDI-a074c7f2163def562a78ebf4c75e412580dd3118.tar.gz
libADLMIDI-a074c7f2163def562a78ebf4c75e412580dd3118.tar.bz2
libADLMIDI-a074c7f2163def562a78ebf4c75e412580dd3118.zip
Changed logic of CC-74 Brightness
to affect sound only between 0 and 64 like real XG synthesizers affect sound only between 0 and 64.
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index 4744903..df00706 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -200,6 +200,13 @@ ADLMIDI_EXPORT void adl_setScaleModulators(ADL_MIDIPlayer *device, int smod)
play->opl.ScaleModulators = play->m_setup.ScaleModulators;
}
+ADLMIDI_EXPORT void adl_setFullRangeBrightness(struct ADL_MIDIPlayer *device, int fr_brightness)
+{
+ if(!device) return;
+ MIDIplay *play = reinterpret_cast<MIDIplay *>(device->adl_midiPlayer);
+ play->m_setup.fullRangeBrightnessCC74 = fr_brightness;
+}
+
ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn)
{
if(!device) return;