I'm trying to figure out the correct way to send control data to the svf plug

following how [plugin~]  is supposed to  work:

the message is:
"port <symbol:direction> <symbol:type> <symbol:name> <float:lowerlimit>
<float:upperlimit>"

with <symbol:direction> being either "in" or "out"
with <symbol:type> being "control" or "audio"
with <symbol:name> being the name of the port (e.g. "Amplitude random (%)")

and lower/upperlimit define the valid range of the value.

for controlling, you use "control <symbol:name> <float:value>"

<symbol:name> is not case-sensitive, and it tries to find a simple match.
e.g. "Amplitude random (%)" can be controlled with "amp" or "AMPLItude"
or "Amplitude random (%)".
it will take the first port that matches, so if you have parameters
"FrequencyUpper" and "FrequencyLower", then "freq" will match
"FrequencyUpper", in order to control the other param you have to use at
least "frequencyl"
in the terminal 'analyseplugin' for svf reveals this:

Plugin Name: "State Variable Filter"
Plugin Label: "svf"
Plugin Unique ID: 1214
Maker: "Steve Harris <[email protected]>"
Copyright: "GPL"
Must Run Real-Time: No
Has activate() Function: Yes
Has deativate() Function: No
Has run_adding() Function: Yes
Environment: Normal or Hard Real-Time
Ports:    "Input" input, audio, -1 to 1
   "Output" output, audio, -1 to 1
"Filter type (0=none, 1=LP, 2=HP, 3=BP, 4=BR, 5=AP)" input, control, 0 to 5, default 0, integer
   "Filter freq" input, control, 0 to 6000, default 440
   "Filter Q" input, control, 0 to 1, default 0.25
   "Filter resonance" input, control, 0 to 1, default 0

I'm having trouble figuring out what exactly to send the plug
I tried sending 'type' 'filter_type' filtertype' and other combinations for "Filter type" but it doesn't seem to like anything I try

*error: plugin~: plugin doesn't have a control input port named "type"*

ditto on 'Q' and 'resonance' although 'filter' seems to be accepted for "Filter_freq"

can you point me to where in the code I might find out the correct syntax for a particular LADSPA plug?


#N canvas 656 65 478 517 10;
#X msg -55 292 info;
#X msg 211 421 \; pd dsp \$1;
#X obj 211 395 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 193 356 dac~;
#X obj 110 281 noise~;
#X obj 147 329 *~;
#X obj 192 221 vsl 25 120 0 1 0 0 empty empty gain 0 -9 0 10 -204800
-1 -1 100 1;
#X obj -109 53 hsl 128 15 0 6000 0 0 empty empty cutoff_freq -2 -8
0 10 -262144 -1 -1 1900 1;
#X msg 192 186 0.1;
#X text -41 338;
#X obj 17 347 pd/print;
#X obj 146 357 pvu~;
#X obj 147 382 vu 15 120 empty empty -1 -8 0 10 -66577 -1 1 0;
#X text 165 15 analyseplugin svf_1214.so;
#X obj 48 54 hsl 128 15 0 1 0 0 empty empty Q -2 -8 0 10 -262144 -1
-1 0 1;
#X msg -112 75 control filter \$1;
#X msg 45 75 control q \$1;
#X obj 17 318 plugin~ svf;
#X msg -81 141 control type \$1;
#X text 126 75 <-- 'q' gives an error message;
#X text 16 142 <-- 'type' gives an error message;
#X msg -13 199 control resonance \$1;
#X obj -11 177 hsl 128 15 0 1 0 0 empty empty res -2 -8 0 10 -262144
-1 -1 0 1;
#X obj -81 112 hradio 15 1 0 6 empty empty type 0 -8 0 10 -262144 -1
-1 5;
#X connect 0 0 17 0;
#X connect 2 0 1 0;
#X connect 4 0 17 1;
#X connect 5 0 11 0;
#X connect 5 0 3 0;
#X connect 5 0 3 1;
#X connect 6 0 5 1;
#X connect 7 0 15 0;
#X connect 8 0 6 0;
#X connect 11 0 12 0;
#X connect 14 0 16 0;
#X connect 15 0 17 0;
#X connect 16 0 17 0;
#X connect 17 0 10 0;
#X connect 17 1 5 0;
#X connect 18 0 17 0;
#X connect 21 0 17 0;
#X connect 22 0 21 0;
#X connect 23 0 18 0;

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to