[SCM] calf/master: + Monosynth: portamento formula changed to linear frequency change (from exponential)

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:36:59 UTC 2013


The following commit has been merged in the master branch:
commit e8dad3ac2fb0516b1316c98093ff483f30862887
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Tue Jan 15 21:24:18 2008 +0000

    + Monosynth: portamento formula changed to linear frequency change (from exponential)
    
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@103 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/monosynth.cpp b/src/monosynth.cpp
index 8f11811..35e08d1 100644
--- a/src/monosynth.cpp
+++ b/src/monosynth.cpp
@@ -523,7 +523,8 @@ void monosynth_audio_module::calculate_step()
             freq = target_freq;
             porta_time = -1;
         } else {
-            freq = start_freq * pow(target_freq / start_freq, point);
+            freq = start_freq + (target_freq - start_freq) * point;
+            // freq = start_freq * pow(target_freq / start_freq, point);
             porta_time += odcr;
         }
     }

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list