diff options
author | Wohlstand <admin@wohlnet.ru> | 2020-08-24 02:27:44 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2020-08-24 02:27:44 +0300 |
commit | 22d2506f5308094e706ec152ec64cfc92ef12876 (patch) | |
tree | 35a937cbf049818c0b9d75f929199e5610379680 /src/adlmidi_opl3.cpp | |
parent | f7cb7d402779384a17408314ec285876299e3ae5 (diff) | |
download | libADLMIDI-22d2506f5308094e706ec152ec64cfc92ef12876.tar.gz libADLMIDI-22d2506f5308094e706ec152ec64cfc92ef12876.tar.bz2 libADLMIDI-22d2506f5308094e706ec152ec64cfc92ef12876.zip |
More clean-up of old commented code
Diffstat (limited to 'src/adlmidi_opl3.cpp')
-rw-r--r-- | src/adlmidi_opl3.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index 1309d83..3648956 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -670,20 +670,6 @@ void OPL3::touchNote(size_t c, // 63 + chanvol * (instrvol / 63.0 - 1) } -/* -void OPL3::Touch(unsigned c, unsigned volume) // Volume maxes at 127*127*127 -{ - if(LogarithmicVolumes) - Touch_Real(c, volume * 127 / (127 * 127 * 127) / 2); - else - { - // The formula below: SOLVE(V=127^3 * 2^( (A-63.49999) / 8), A) - Touch_Real(c, volume > 8725 ? static_cast<unsigned int>(std::log(volume) * 11.541561 + (0.5 - 104.22845)) : 0); - // The incorrect formula below: SOLVE(V=127^3 * (2^(A/63)-1), A) - //Touch_Real(c, volume>11210 ? 91.61112 * std::log(4.8819E-7*volume + 1.0)+0.5 : 0); - } -}*/ - void OPL3::setPatch(size_t c, const adldata &instrument) { size_t chip = c / NUM_OF_CHANNELS, cc = c % NUM_OF_CHANNELS; |