forked from swh/ladspa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
matrix_st_ms_1420.xml
38 lines (32 loc) · 1.03 KB
/
matrix_st_ms_1420.xml
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 <[email protected]>"/>
<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>