[SCM] calf/master: + MultiChorus: make voice phase spread parameter determine a total spread across all voices, not between two neighbour voices

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:38:29 UTC 2013


The following commit has been merged in the master branch:
commit c6812805c9a634d62dc6bc2e1853f133bab3cf66
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sat Nov 15 22:32:00 2008 +0000

    + MultiChorus: make voice phase spread parameter determine a total spread across all voices, not between two neighbour voices

diff --git a/src/calf/modules.h b/src/calf/modules.h
index d71eca3..ffac3d0 100644
--- a/src/calf/modules.h
+++ b/src/calf/modules.h
@@ -666,7 +666,7 @@ public:
         int voices = (int)*params[par_voices];
         left.lfo.set_voices(voices); right.lfo.set_voices(voices);
         float vphase = *params[par_vphase] * (1.f / 360.f);
-        left.lfo.vphase = right.lfo.vphase = vphase * 4096;
+        left.lfo.vphase = right.lfo.vphase = vphase * (4096 / std::max(voices - 1, 1));
         float r_phase = *params[par_stereo] * (1.f / 360.f);
         if (fabs(r_phase - last_r_phase) > 0.0001f) {
             right.lfo.phase = left.lfo.phase;

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list