[SCM] calf/master: + Compressor: Changed 'Compression' output to fader type.

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


The following commit has been merged in the master branch:
commit 0e4779f99e331ca524f619c5864f882def5a4529
Author: Thor Harald Johansen <thj at thj.no>
Date:   Thu Oct 30 23:48:36 2008 +0100

    + Compressor: Changed 'Compression' output to fader type.

diff --git a/src/calf/modules_dev.h b/src/calf/modules_dev.h
index 380afbc..b1c0d5d 100644
--- a/src/calf/modules_dev.h
+++ b/src/calf/modules_dev.h
@@ -49,8 +49,10 @@ public:
         float release_coeff = 1 / (*params[param_release] * srate / 1000);
         float makeup = *params[param_makeup];
 
-        *params[param_compression] = aim;
-        
+        if(params[param_compression] != NULL) {
+            *params[param_compression] = aim;
+        }
+
         while(offset < numsamples) {
             float asample = std::max(fabs(ins[0][offset]), fabs(ins[1][offset]));
             for(int channel = 0; channel < in_count; channel++) {
diff --git a/src/modules.cpp b/src/modules.cpp
index 3602e4c..91f7a99 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -179,7 +179,7 @@ parameter_properties compressor_audio_module::param_props[] = {
     { 10,     1, 2000, 0, PF_FLOAT | PF_SCALE_LOG | PF_CTL_KNOB | PF_UNIT_MSEC, NULL, "attack", "Attack" },
     { 100,    1, 2000, 0, PF_FLOAT | PF_SCALE_LOG | PF_CTL_KNOB | PF_UNIT_MSEC, NULL, "release", "Release" },
     { 1,      1, 12,   0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_DB, NULL, "makeup", "Makeup Gain" },
-    { 0,      0, 1,    0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_FADER | PF_UNIT_DB | PF_PROP_OUTPUT | PF_PROP_OPTIONAL, NULL, "compression", "Compression" }
+    { 0,      0, 1,    0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_METER | PF_UNIT_DB | PF_PROP_OUTPUT | PF_PROP_OPTIONAL, NULL, "compression", "Compression" }
 };
 
 synth::ladspa_plugin_info compressor_audio_module::plugin_info = { 0x8502, "Compressor", "Calf Compressor", "Thor Harald Johansen", synth::calf_copyright_info, "CompressorPlugin" };

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list