diff options
-rw-r--r-- | src/adlmidi_midiplay.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index f52d936..0a4639a 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -2463,7 +2463,7 @@ void MIDIplay::UpdatePortamento(unsigned MidCh) double rate = HUGE_VAL; uint16_t midival = Ch[MidCh].portamento; if(Ch[MidCh].portamentoEnable && midival > 0) - rate = 350.0 * std::exp2(-0.062 * (1.0 / 128) * midival); + rate = 350.0 * std::pow(2.0, -0.062 * (1.0 / 128) * midival); Ch[MidCh].portamentoRate = rate; } |