mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-06 05:45:51 -04:00
+ Monosynth: fix type bug that made it impossible to compile with g++ 4.2
(cherry picked from commit f2cd6987deba9f82a9824529bad6de2ab89e0bc6)
This commit is contained in:
committed by
Tobias Doerffel
parent
9b29e3a2a6
commit
f8c6833e9f
@@ -626,7 +626,7 @@ void monosynth_audio_module::set_frequency()
|
||||
{
|
||||
float detune_scaled = (detune - 1); // * log(freq / 440);
|
||||
if (*params[par_scaledetune] > 0)
|
||||
detune_scaled *= pow(20.0 / freq, *params[par_scaledetune]);
|
||||
detune_scaled *= pow(20.0 / freq, (double)*params[par_scaledetune]);
|
||||
float p1 = 1, p2 = 1;
|
||||
if (moddest[moddest_o1detune] != 0)
|
||||
p1 = pow(2.0, moddest[moddest_o1detune] * (1.0 / 1200.0));
|
||||
|
||||
Reference in New Issue
Block a user