<br><br><div class="gmail_quote">2010/6/14 Kim Cascone <span dir="ltr"><<a href="mailto:kim@anechoicmedia.com">kim@anechoicmedia.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I'm trying to figure out the correct way to send control data to the svf plug<br>
<br>
following how [plugin~] is supposed to work:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
the message is:<br>
"port <symbol:direction> <symbol:type> <symbol:name> <float:lowerlimit><br>
<float:upperlimit>"<br>
<br>
with <symbol:direction> being either "in" or "out"<br>
with <symbol:type> being "control" or "audio"<br>
with <symbol:name> being the name of the port (e.g. "Amplitude random (%)")<br>
<br>
and lower/upperlimit define the valid range of the value.<br>
<br>
for controlling, you use "control <symbol:name> <float:value>"<br>
<br>
<symbol:name> is not case-sensitive, and it tries to find a simple match.<br>
e.g. "Amplitude random (%)" can be controlled with "amp" or "AMPLItude"<br>
or "Amplitude random (%)".<br>
it will take the first port that matches, so if you have parameters<br>
"FrequencyUpper" and "FrequencyLower", then "freq" will match<br>
"FrequencyUpper", in order to control the other param you have to use at<br>
least "frequencyl"<br>
</blockquote>
in the terminal 'analyseplugin' for svf reveals this:<br>
<br>
Plugin Name: "State Variable Filter"<br>
Plugin Label: "svf"<br>
Plugin Unique ID: 1214<br>
Maker: "Steve Harris <<a href="mailto:steve@plugin.org.uk" target="_blank">steve@plugin.org.uk</a>>"<br>
Copyright: "GPL"<br>
Must Run Real-Time: No<br>
Has activate() Function: Yes<br>
Has deativate() Function: No<br>
Has run_adding() Function: Yes<br>
Environment: Normal or Hard Real-Time<br>
Ports: "Input" input, audio, -1 to 1<br>
"Output" output, audio, -1 to 1<br>
"Filter type (0=none, 1=LP, 2=HP, 3=BP, 4=BR, 5=AP)" input, control, 0 to 5, default 0, integer<br>
"Filter freq" input, control, 0 to 6000, default 440<br>
"Filter Q" input, control, 0 to 1, default 0.25<br>
"Filter resonance" input, control, 0 to 1, default 0<br>
<br>
I'm having trouble figuring out what exactly to send the plug<br>
I tried sending 'type' 'filter_type' filtertype' and other combinations for "Filter type" but it doesn't seem to like anything I try<br>
<br>
*error: plugin~: plugin doesn't have a control input port named "type"*<br>
<br>
ditto on 'Q' and 'resonance' although 'filter' seems to be accepted for "Filter_freq"<br>
<br>
can you point me to where in the code I might find out the correct syntax for a particular LADSPA plug?<br>
<br>
<br></blockquote><div><div>Hi Kim,</div><div><br></div><div>try:</div><div><br></div><div>[0\</div><div>|</div><div>[control #n $1( </div><div>|</div><div>[plugin~ svf]</div><div><br></div><div>where n is the number of the parameter (so #1 or #2 or #3 ..etc)</div>
<div><br></div><div>gr,</div><div>Tim</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>