File: matrix_st_ms_1420.xml

package info (click to toggle)
swh-plugins 0.4.17-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,264 kB
  • sloc: ansic: 23,551; xml: 12,633; perl: 1,114; sh: 964; makefile: 218
file content (38 lines) | stat: -rw-r--r-- 1,054 bytes parent folder | download | duplicates (8)
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
<?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="matrixStMS" id="1420" class="UtilityPlugin">
    <name>Matrix: Stereo to MS</name>

    <callback event="run"><![CDATA[
      unsigned long pos;

      for (pos = 0; pos < sample_count; pos++) {
        buffer_write(mid[pos], (left[pos] + right[pos]) * 0.5);
        buffer_write(side[pos], (left[pos] - right[pos]) * 0.5);
      }
    ]]></callback>

    <port label="left" dir="input" type="audio">
      <name>Left</name>
    </port>
    <port label="right" dir="input" type="audio">
      <name>Right</name>
    </port>

    <port label="mid" dir="output" type="audio">
      <name>Mid</name>
    </port>
    <port label="side" dir="output" type="audio">
      <name>Side</name>
    </port>
  </plugin>
</ladspa>