From a074c7f2163def562a78ebf4c75e412580dd3118 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Wed, 11 Apr 2018 00:40:55 +0300 Subject: 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. --- include/adlmidi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/adlmidi.h') diff --git a/include/adlmidi.h b/include/adlmidi.h index 6786f4a..b21df2c 100644 --- a/include/adlmidi.h +++ b/include/adlmidi.h @@ -110,6 +110,12 @@ extern void adl_setHTremolo(struct ADL_MIDIPlayer *device, int htremo); /*Override Enable(1) or Disable(0) scaling of modulator volumes. -1 - use bank default scaling of modulator volumes*/ extern void adl_setScaleModulators(struct ADL_MIDIPlayer *device, int smod); +/*Enable(1) or Disable(0) full-range brightness (MIDI CC74 used in XG music to filter result sounding) scaling. + By default, brightness affects sound between 0 and 64. + When this option is enabled, the range will use a full range from 0 up to 127. +*/ +extern void adl_setFullRangeBrightness(struct ADL_MIDIPlayer *device, int fr_brightness); + /*Enable or disable built-in loop (built-in loop supports 'loopStart' and 'loopEnd' tags to loop specific part)*/ extern void adl_setLoopEnabled(struct ADL_MIDIPlayer *device, int loopEn); -- cgit v1.2.3