You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
52 lines
1.3 KiB
<?xml version="1.0"?> |
|
<block> |
|
<name>smooth_vectors</name> |
|
<key>crfa_smooth_vectors</key> |
|
<category>[crfa]</category> |
|
<import>import crfa</import> |
|
<make>crfa.smooth_vectors($vec_len, $decim, $moving_avg_len)</make> |
|
<!-- Make one 'param' node for every Parameter you want settable from the GUI. |
|
Sub-nodes: |
|
* name |
|
* key (makes the value accessible as $keyname, e.g. in the make node) |
|
* type --> |
|
<param> |
|
<name>vec_len</name> |
|
<key>vec_len</key> |
|
<value>1024</value> |
|
<type>int</type> |
|
</param> |
|
<param> |
|
<name>decim</name> |
|
<key>decim</key> |
|
<value>1</value> |
|
<type>int</type> |
|
</param> |
|
<param> |
|
<name>moving_avg_len</name> |
|
<key>moving_avg_len</key> |
|
<value>2</value> |
|
<type>int</type> |
|
</param> |
|
|
|
<!-- Make one 'sink' node per input. Sub-nodes: |
|
* name (an identifier for the GUI) |
|
* type |
|
* vlen |
|
* optional (set to 1 for optional inputs) --> |
|
<sink> |
|
<name>in</name> |
|
<type>float</type> |
|
<vlen>$vec_len</vlen> |
|
</sink> |
|
<!-- Make one 'source' node per output. Sub-nodes: |
|
* name (an identifier for the GUI) |
|
* type |
|
* vlen |
|
* optional (set to 1 for optional inputs) --> |
|
<source> |
|
<name>out</name> |
|
<type>float</type> |
|
<vlen>$vec_len</vlen> |
|
</source> |
|
</block>
|
|
|