| 1 | |
| 2 | <refentry id="bformdec1"> |
| 3 | <indexterm id="IndexBformdec1"><primary>bformdec1</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Panning and Spatialization</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>bformdec1</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>bformdec1</refname> |
| 13 | <refpurpose> |
| 14 | Decodes an ambisonic B format signal |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Decodes an ambisonic B format signal into loudspeaker specific signals. |
| 22 | </para> |
| 23 | |
| 24 | |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Syntax</title> |
| 29 | <synopsis>ao1, ao2 <command>bformdec1</command> isetup, aw, ax, ay, az [, ar, as, at, au, av \ |
| 30 | [, abk, al, am, an, ao, ap, aq]]</synopsis> |
| 31 | <synopsis>ao1, ao2, ao3, ao4 <command>bformdec1</command> isetup, aw, ax, ay, az [, ar, as, at, \ |
| 32 | au, av [, abk, al, am, an, ao, ap, aq]]</synopsis> |
| 33 | <synopsis>ao1, ao2, ao3, ao4, ao5 <command>bformdec1</command> isetup, aw, ax, ay, az [, ar, as, \ |
| 34 | at, au, av [, abk, al, am, an, ao, ap, aq]]</synopsis> |
| 35 | <synopsis>ao1, ao2, ao3, ao4, ao5, ao6, ao7, ao8 <command>bformdec1</command> isetup, aw, ax, ay, az \ |
| 36 | [, ar, as, at, au, av [, abk, al, am, an, ao, ap, |
| 37 | aq]]]</synopsis> |
| 38 | <synopsis>aout[] <command>bformdec1</command> isetup, abform[]</synopsis> |
| 39 | </refsect1> |
| 40 | |
| 41 | <refsect1> |
| 42 | <title>Initialization</title> |
| 43 | |
| 44 | <para> |
| 45 | Note that horizontal angles are measured anticlockwise in this |
| 46 | description. |
| 47 | </para> |
| 48 | <para> |
| 49 | <emphasis>isetup</emphasis> –- loudspeaker setup. There are |
| 50 | five supported setups: |
| 51 | <itemizedlist> |
| 52 | <listitem>1. Stereo - L(90), R(-90); this is an M+S style stereo decode.</listitem> |
| 53 | <listitem>2. Quad - FL(45), BL(135), BR(-135), FR(-45). |
| 54 | This is a first-order `in-phase' decode.</listitem> |
| 55 | <listitem>3. 5.0 - L(30),R(-30),C(0),BL(110),BR(-110). |
| 56 | Note that many people do not actually use the angles above for |
| 57 | their speaker arrays and a good decode for DVD etc can be |
| 58 | achieved using the Quad configuration to feed L, R, BL and BR |
| 59 | (leaving C silent).</listitem> |
| 60 | <listitem>4. Octagon - FFL(22.5),FLL(67.5),BLL(112.5),BBL(157.5),BBR(-157.5),BRR(-112.5),FRR(-67.5),FFR(-22.5). |
| 61 | This is a first-, second- or third-order `in-phase' decode, |
| 62 | depending on the number of input channels.</listitem> |
| 63 | <listitem>5. Cube - FLD(45,-35.26),FLU(45,35.26),BLD(135,-35.26),BLU(135,35.26),BRD(-135,-35.26),BRU(-135,35.26),FRD(-45,-35.26),FRU(-45,35.26). |
| 64 | This is a first-order `in-phase' decode.</listitem> |
| 65 | </itemizedlist> |
| 66 | </para> |
| 67 | |
| 68 | </refsect1> |
| 69 | |
| 70 | <refsect1> |
| 71 | <title>Performance</title> |
| 72 | |
| 73 | <para> |
| 74 | <emphasis>aw, ax, ay, ... </emphasis> |
| 75 | -- input signal in the B format. |
| 76 | </para> |
| 77 | |
| 78 | <para> |
| 79 | <emphasis>ao1 .. ao8</emphasis> -– loudspeaker specific output signals. |
| 80 | </para> |
| 81 | |
| 82 | |
| 83 | </refsect1> |
| 84 | |
| 85 | <refsect1> |
| 86 | <title>Example</title> |
| 87 | <para> |
| 88 | Here is an example of the bformdec1 opcode. It uses the file <ulink url="examples/bformenc1.csd"><citetitle>bformenc1.csd</citetitle></ulink>. |
| 89 | |
| 90 | <example> |
| 91 | <title>Example of the bformdec1 opcode.</title> |
| 92 | |
| 93 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 94 | |
| 95 | <xi:include href="examples-xml/bformenc1.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 96 | </example> |
| 97 | </para> |
| 98 | </refsect1> |
| 99 | |
| 100 | <refsect1> |
| 101 | <title>See also</title> |
| 102 | <para><link linkend="SigmodPanspatl"><citetitle>Panning and Spatialization: Ambisonics</citetitle></link></para> |
| 103 | </refsect1> |
| 104 | |
| 105 | <refsect1> |
| 106 | <title>Credits</title> |
| 107 | <para> |
| 108 | <simplelist> |
| 109 | <member>Author: Richard Furse, Bruce Wiggins and Fons |
| 110 | Adriaensen, following code by Samuel Groner</member> |
| 111 | <member>2008</member> |
| 112 | </simplelist> |
| 113 | </para> |
| 114 | <para>New in version 5.09</para> |
| 115 | </refsect1> |
| 116 | </refentry> |