aboutsummaryrefslogtreecommitdiff
path: root/audio/calf/files/patch-src_monosynth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/calf/files/patch-src_monosynth.cpp')
-rw-r--r--audio/calf/files/patch-src_monosynth.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/audio/calf/files/patch-src_monosynth.cpp b/audio/calf/files/patch-src_monosynth.cpp
new file mode 100644
index 000000000000..1c949a8fbef1
--- /dev/null
+++ b/audio/calf/files/patch-src_monosynth.cpp
@@ -0,0 +1,11 @@
+--- src/monosynth.cpp.orig 2015-01-10 10:25:16 UTC
++++ src/monosynth.cpp
+@@ -309,7 +309,7 @@ void monosynth_audio_module::calculate_b
+ {
+ float freq = fabs(*params[par_o2unisonfrq] / muls[7]);
+ if (moddest[moddest_o2unisondetune] != 0)
+- freq *= pow(2.0, moddest[moddest_o2unisondetune]);
++ freq *= pow(2.0, (double)moddest[moddest_o2unisondetune]);
+ unison_osc.set_freq(freq, srate);
+ last_unison_scale = 1.0 / (1.0 + 2 * last_unison);
+ unison_scale = 1.0 / (1.0 + 2 * unison);