<br><br><div class="gmail_quote">2010/6/14 Kim Cascone <span dir="ltr">&lt;<a href="mailto:kim@anechoicmedia.com">kim@anechoicmedia.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
I&#39;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>
&quot;port &lt;symbol:direction&gt; &lt;symbol:type&gt; &lt;symbol:name&gt; &lt;float:lowerlimit&gt;<br>
&lt;float:upperlimit&gt;&quot;<br>
<br>
with &lt;symbol:direction&gt; being either &quot;in&quot; or &quot;out&quot;<br>
with &lt;symbol:type&gt; being &quot;control&quot; or &quot;audio&quot;<br>
with &lt;symbol:name&gt; being the name of the port (e.g. &quot;Amplitude random (%)&quot;)<br>
<br>
and lower/upperlimit define the valid range of the value.<br>
<br>
for controlling, you use &quot;control &lt;symbol:name&gt; &lt;float:value&gt;&quot;<br>
<br>
&lt;symbol:name&gt; is not case-sensitive, and it tries to find a simple match.<br>
e.g. &quot;Amplitude random (%)&quot; can be controlled with &quot;amp&quot; or &quot;AMPLItude&quot;<br>
or &quot;Amplitude random (%)&quot;.<br>
it will take the first port that matches, so if you have parameters<br>
&quot;FrequencyUpper&quot; and &quot;FrequencyLower&quot;, then &quot;freq&quot; will match<br>
&quot;FrequencyUpper&quot;, in order to control the other param you have to use at<br>
least &quot;frequencyl&quot;<br>
</blockquote>
in the terminal &#39;analyseplugin&#39; for svf reveals this:<br>
<br>
Plugin Name: &quot;State Variable Filter&quot;<br>
Plugin Label: &quot;svf&quot;<br>
Plugin Unique ID: 1214<br>
Maker: &quot;Steve Harris &lt;<a href="mailto:steve@plugin.org.uk" target="_blank">steve@plugin.org.uk</a>&gt;&quot;<br>
Copyright: &quot;GPL&quot;<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:    &quot;Input&quot; input, audio, -1 to 1<br>
   &quot;Output&quot; output, audio, -1 to 1<br>
   &quot;Filter type (0=none, 1=LP, 2=HP, 3=BP, 4=BR, 5=AP)&quot; input, control, 0 to 5, default 0, integer<br>
   &quot;Filter freq&quot; input, control, 0 to 6000, default 440<br>
   &quot;Filter Q&quot; input, control, 0 to 1, default 0.25<br>
   &quot;Filter resonance&quot; input, control, 0 to 1, default 0<br>
<br>
I&#39;m having trouble figuring out what exactly to send the plug<br>
I tried sending &#39;type&#39; &#39;filter_type&#39; filtertype&#39; and other combinations for &quot;Filter type&quot; but it doesn&#39;t seem to like anything I try<br>
<br>
*error: plugin~: plugin doesn&#39;t have a control input port named &quot;type&quot;*<br>
<br>
ditto on &#39;Q&#39; and &#39;resonance&#39; although &#39;filter&#39; seems to be accepted for &quot;Filter_freq&quot;<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 -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>