[SCM] calf/master: + Phaser: initialization fixes

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:37:07 UTC 2013


The following commit has been merged in the master branch:
commit d5dd9512bc24fdd455fdef95d4df59cd34ddd698
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Mon Apr 7 20:54:43 2008 +0000

    + Phaser: initialization fixes
    
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@147 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/calf/audio_fx.h b/src/calf/audio_fx.h
index 26ed93c..2bb9591 100644
--- a/src/calf/audio_fx.h
+++ b/src/calf/audio_fx.h
@@ -95,12 +95,22 @@ template<int MaxStages>
 class simple_phaser: public modulation_effect
 {
 protected:
-    float base_frq, mod_depth, resonance, fb;
+    float base_frq, mod_depth, fb;
     float state;
     int cnt, stages;
     dsp::onepole<float, float> stage1;
     float x1[MaxStages], y1[MaxStages];
 public:
+    simple_phaser()
+    {
+        set_base_frq(1000);
+        set_mod_depth(1000);
+        set_fb(0);
+        state = 0;
+        cnt = 0;
+        stages = 0;
+        set_stages(6);
+    }
     float get_base_frq() {
         return base_frq;
     }
@@ -141,6 +151,7 @@ public:
     {
         cnt = 0;
         state = 0;
+        phase.set(0);
         for (int i = 0; i < MaxStages; i++)
             x1[i] = y1[i] = 0;
         control_step();

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list