[SCM] calf/master: + Organ: recalculate global LFO filters (roughly) every 64 samples

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


The following commit has been merged in the master branch:
commit 2d57b415b4d65c49f7c26f824fdf81a5823d2d87
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Sat May 3 19:54:33 2008 +0000

    + Organ: recalculate global LFO filters (roughly) every 64 samples
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@167 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/calf/organ.h b/src/calf/organ.h
index 16a09fc..51040c7 100644
--- a/src/calf/organ.h
+++ b/src/calf/organ.h
@@ -279,7 +279,10 @@ struct drawbar_organ: public synth::basic_synth {
         dsp::zero(&buf[0][0], 2 * nsamples);
         basic_synth::render_to(buf, nsamples);
         if (fastf2i_drm(parameters->lfo_mode) == organ_voice_base::lfomode_global)
-            global_vibrato.process(parameters, buf, nsamples, sample_rate);
+        {
+            for (int i = 0; i < nsamples; i += 64)
+                global_vibrato.process(parameters, buf + i, min(64, nsamples - i), sample_rate);
+        }
         if (percussion.get_active())
             percussion.render_to(buf, nsamples);
         float gain = parameters->master * (1.0 / (9 * 8));

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list