[SCM] calf/master: + Filter, Filterclavier: allow BP filters in Filter, use the same string array for both plugins, rename BP filters to reflect their true characteristics

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:00 UTC 2013


The following commit has been merged in the master branch:
commit 2a9da7c57190b85196600d6b32328ac6ab6e1048
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Thu Jan 22 20:52:36 2009 +0000

    + Filter, Filterclavier: allow BP filters in Filter, use the same string array for both plugins, rename BP filters to reflect their true characteristics

diff --git a/src/modules.cpp b/src/modules.cpp
index f2678fe..ef93598 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -98,12 +98,15 @@ const char *filter_choices[] = {
     "12dB/oct Highpass",
     "24dB/oct Highpass",
     "36dB/oct Highpass",
+    "6dB/oct Bandpass", 
+    "12dB/oct Bandpass",
+    "18dB/oct Bandpass",
 };
 
 CALF_PORT_PROPS(filter) = {
     { 2000,      10,20000,    0, PF_FLOAT | PF_SCALE_LOG | PF_CTL_KNOB | PF_UNIT_HZ | PF_PROP_GRAPH, NULL, "freq", "Frequency" },
     { 0.707,  0.707,   32,    0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_COEF, NULL, "res", "Resonance" },
-    { 0,          0,    5,    1, PF_ENUM | PF_CTL_COMBO, filter_choices, "mode", "Mode" },
+    { 0,          0,    8,    1, PF_ENUM | PF_CTL_COMBO, filter_choices, "mode", "Mode" },
     { 20,         5,  100,    20, PF_FLOAT | PF_SCALE_LOG | PF_CTL_KNOB | PF_UNIT_MSEC, NULL, "inertia", "Inertia"},
 };
 
@@ -113,22 +116,10 @@ CALF_PLUGIN_INFO(filter) = { 0x847f, "Filter", "Calf Filter", "Krzysztof Foltman
 
 CALF_PORT_NAMES(filterclavier) = {"In L", "In R", "Out L", "Out R"};
 
-const char *filterclavier_choices[] = {
-    "12dB/oct Lowpass",
-    "24dB/oct Lowpass",
-    "36dB/oct Lowpass",
-    "12dB/oct Highpass",
-    "24dB/oct Highpass",
-    "36dB/oct Highpass",
-    "12dB/oct Bandpass", // TODO: are we lying here?
-    "24dB/oct Bandpass", // TODO: are we lying here?
-    "36dB/oct Bandpass", // TODO: are we lying here?
-};
-
 CALF_PORT_PROPS(filterclavier) = {
     { 0,        -48,   48, 48*2+1, PF_INT   | PF_SCALE_LINEAR | PF_CTL_KNOB | PF_UNIT_SEMITONES, NULL, "transpose", "Transpose" },
     { 0,       -100,  100,      0, PF_INT   | PF_SCALE_LINEAR | PF_CTL_KNOB | PF_UNIT_CENTS, NULL, "detune", "Detune" },
-    { 6,          0,    8,      1, PF_ENUM  | PF_CTL_COMBO, filterclavier_choices, "mode", "Mode" },
+    { 6,          0,    8,      1, PF_ENUM  | PF_CTL_COMBO, filter_choices, "mode", "Mode" },
     { 20,         1,  2000,    20, PF_FLOAT | PF_SCALE_LOG    | PF_CTL_KNOB | PF_UNIT_MSEC, NULL, "inertia", "Portamento time"}
 };
 

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list