diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-21 04:24:31 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-21 04:24:31 +0300 |
commit | 2f23710e928876c785f19689ac13f81511c0c7ae (patch) | |
tree | 1801ff0b5bf734ce42fb896c9249c1e837f51dc0 /src/adlmidi_midiplay.cpp | |
parent | 9f0f9e4e374798851da39335406ac4bafad81297 (diff) | |
download | libADLMIDI-2f23710e928876c785f19689ac13f81511c0c7ae.tar.gz libADLMIDI-2f23710e928876c785f19689ac13f81511c0c7ae.tar.bz2 libADLMIDI-2f23710e928876c785f19689ac13f81511c0c7ae.zip |
Remove second Bend coefficient
I have tested 14'th bank on DosBox emulator in current state, and seems everything is fine, no any hi-hats distortions.
Diffstat (limited to 'src/adlmidi_midiplay.cpp')
-rw-r--r-- | src/adlmidi_midiplay.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index 5b7f0d9..f539b16 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -953,11 +953,7 @@ void MIDIplay::NoteUpdate(uint16_t MidCh, if(vibrato && (!d || d->vibdelay >= Ch[MidCh].vibdelay)) bend += static_cast<double>(vibrato) * Ch[MidCh].vibdepth * std::sin(Ch[MidCh].vibpos); -#ifdef ADLMIDI_USE_DOSBOX_OPL -# define BEND_COEFFICIENT 172.00093 -#else -# define BEND_COEFFICIENT 172.4387 -#endif +#define BEND_COEFFICIENT 172.4387 opl.NoteOn(c, BEND_COEFFICIENT * std::exp(0.057762265 * (currentTone + bend + phase))); #undef BEND_COEFFICIENT if(hooks.onNote) |