[SCM] calf/master: * Compressor: More braggable default settings. ; -)
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:38:16 UTC 2013
The following commit has been merged in the master branch:
commit 1b987113a3a875ad2bf5d0242cc86d917357b174
Author: Thor Harald Johansen <thj at thj.no>
Date: Sat Nov 1 19:55:29 2008 +0100
* Compressor: More braggable default settings. ;-)
diff --git a/src/calf/modules_dev.h b/src/calf/modules_dev.h
index f61226f..a91285c 100644
--- a/src/calf/modules_dev.h
+++ b/src/calf/modules_dev.h
@@ -47,7 +47,7 @@ public:
uint32_t process(uint32_t offset, uint32_t numsamples, uint32_t inputs_mask, uint32_t outputs_mask) {
bool bypass = *params[param_bypass] > 0.5f;
bool rms = *params[param_detection] == 0;
- bool average = *params[param_stereo_link] == 1;
+ bool average = *params[param_stereo_link] == 0;
float threshold = *params[param_threshold];
float ratio = *params[param_ratio];
float attack = *params[param_attack];
diff --git a/src/modules.cpp b/src/modules.cpp
index ce909c8..d8a0776 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -176,15 +176,15 @@ synth::ladspa_plugin_info multichorus_audio_module::plugin_info = { 0x8501, "Mul
#if ENABLE_EXPERIMENTAL
const char *compressor_detection_names[] = { "RMS", "Peak" };
-const char *compressor_stereo_link_names[] = { "Maximum", "Average" };
+const char *compressor_stereo_link_names[] = { "Average", "Maximum" };
parameter_properties compressor_audio_module::param_props[] = {
- { 1, 0, 1, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_DB, NULL, "threshold", "Threshold" },
- { 1, 1, 100, 101, PF_FLOAT | PF_SCALE_LOG_INF | PF_CTL_KNOB | PF_UNIT_COEF, NULL, "ratio", "Ratio" },
+ { 0.0625, 0, 1, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_DB, NULL, "threshold", "Threshold" },
+ { 5, 1, 100, 101, PF_FLOAT | PF_SCALE_LOG_INF | PF_CTL_KNOB | PF_UNIT_COEF, NULL, "ratio", "Ratio" },
{ 15, 0.01, 2000, 0, PF_FLOAT | PF_SCALE_LOG | PF_CTL_KNOB | PF_UNIT_MSEC, NULL, "attack", "Attack" },
- { 200, 0.01, 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" },
- { 1, 0, 1, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_DB, NULL, "knee", "Knee" },
+ { 150, 0.01, 2000, 0, PF_FLOAT | PF_SCALE_LOG | PF_CTL_KNOB | PF_UNIT_MSEC, NULL, "release", "Release" },
+ { 2, 1, 16, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_DB, NULL, "makeup", "Makeup Gain" },
+ { 0.25, 0, 1, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_DB, NULL, "knee", "Knee" },
{ 0, 0, 1, 0, PF_ENUM | PF_CTL_COMBO, compressor_detection_names, "detection", "Detection" },
{ 0, 0, 1, 0, PF_ENUM | PF_CTL_COMBO, compressor_stereo_link_names, "stereo_link", "Stereo Link" },
{ 0, 0.03125, 1, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_METER | PF_CTLO_LABEL | PF_CTLO_REVERSE | PF_UNIT_DB | PF_PROP_OUTPUT | PF_PROP_OPTIONAL, NULL, "compression", "Compression" },
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list