[SCM] calf/master: + Organ: fix the W3 waveform so that it isn't one octave too high

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


The following commit has been merged in the master branch:
commit 9467f2ec4471a3aa1ae304131645c08e72c2b739
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Sun Apr 13 17:54:24 2008 +0000

    + Organ: fix the W3 waveform so that it isn't one octave too high
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@161 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/organ.cpp b/src/organ.cpp
index 15faae0..2b6a426 100644
--- a/src/organ.cpp
+++ b/src/organ.cpp
@@ -504,7 +504,7 @@ organ_voice_base::organ_voice_base(organ_parameters *_parameters)
         for (int i = 0; i < ORGAN_WAVE_SIZE; i++)
         {
             float ph = i * 2 * M_PI / ORGAN_WAVE_SIZE;
-            tmp[i] = sin(ph) * sin(3 * ph) * sin(5 * ph) * sin(7 * ph) * sin(8 * ph);
+            tmp[i] = sin(ph) * sin(3 * ph) * sin(5 * ph) * sin(7 * ph) * sin(9 * ph);
         }
         normalize_waveform(tmp, ORGAN_WAVE_SIZE);
         waves[wave_w3].make(bl, tmp);

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list