File: plugin.xml

package info (click to toggle)
swh-lv2 1.0.16%2Bgit20160519~repack0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 1,004 kB
  • ctags: 440
  • sloc: xml: 11,889; ansic: 2,120; makefile: 120
file content (40 lines) | stat: -rw-r--r-- 1,291 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<!DOCTYPE ladspa SYSTEM "ladspa-swh.dtd">
<?xml-stylesheet href="ladspa.css" type="text/css"?>

<ladspa>
  <global>
    <meta name="maker" value="Steve Harris &lt;steve@plugin.org.uk&gt;"/>
    <meta name="copyright" value="GPL"/>
    <meta name="properties" value="HARD_RT_CAPABLE"/>
  </global>

  <plugin label="waveTerrain" id="1412" class="OscillatorPlugin">
    <name>Wave Terrain Oscillator</name>
    <p>A Wave Terrain oscillator, taken from Curtis Roads' example in {\em The Computer Music Tutorial}.</p>
    <p>Inputs x and y move the cursor around on a 2D landscape "wavetable" that is used to generate the output. The function used is  z = (x - y) * (x - 1) * (x + 1) * (y - 1) * (y + 1).</p>

    <callback event="run"><![CDATA[
      unsigned long pos;
      float x, y;

      for (pos = 0; pos < sample_count; pos++) {
	x = xb[pos];
	y = yb[pos];
        zb[pos] = (x - y) * (x - 1.0f) * (x + 1.0f) * (y - 1.0f) * (y + 1.0f);
      }
    ]]></callback>

    <port label="xb" dir="input" type="audio" hint="default_0">
      <name>x</name>
    </port>

    <port label="yb" dir="input" type="audio" hint="default_0">
      <name>y</name>
    </port>

    <port label="zb" dir="output" type="audio">
      <name>z</name>
    </port>
  </plugin>
</ladspa>