| 1 | <refentry id="framebuffer"> |
| 2 | <indexterm id="IndexFramebuffer"><primary>framebuffer</primary></indexterm> |
| 3 | <refentryinfo><title>Miscellaneous</title></refentryinfo> |
| 4 | <refmeta> |
| 5 | <refentrytitle>framebuffer</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>framebuffer</refname> |
| 10 | <refpurpose> |
| 11 | Read audio signals into 1 dimensional k-rate arrays and vice-versa with a specified buffer size. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Description</title> |
| 17 | <para>Plugin opcode in framebuffer.</para> |
| 18 | <para> |
| 19 | <emphasis>framebuffer</emphasis> converts audio signals into a 1 dimensional k-rate array of a specified size. The size of the k-rate array must be larger than ksmps. It also converts 1 dimensional k-rate arrays back into audio signals, the k-rate arrays must be uninitialised and also be larger than ksmps in size. The buffer works as a circular buffer and may be used for doing frame based audio processing such as spectral analysis/synthesis or as a simple delay line. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>kout[] <command>framebuffer</command> ain, isize</synopsis> |
| 26 | </refsect1> |
| 27 | <refsect1> |
| 28 | <synopsis>aout <command>framebuffer</command> kin, isize</synopsis> |
| 29 | |
| 30 | </refsect1> |
| 31 | |
| 32 | <refsect1> |
| 33 | <title>Initialization</title> |
| 34 | <para> |
| 35 | <emphasis>isize</emphasis> -- The amount of samples that the buffer will contain. |
| 36 | </para> |
| 37 | </refsect1> |
| 38 | |
| 39 | <refsect1> |
| 40 | <title>Performance</title> |
| 41 | <para> |
| 42 | <emphasis>kout[]</emphasis> -- The k-rate array output from the framebuffer. |
| 43 | <emphasis>ain</emphasis> -- The audio signal input to the framebuffer. |
| 44 | </para> |
| 45 | |
| 46 | <para> |
| 47 | <emphasis>aout</emphasis> -- The audio signal output from the framebuffer. |
| 48 | <emphasis>kin</emphasis> -- The k-rate array input to the framebuffer. |
| 49 | </para> |
| 50 | |
| 51 | </refsect1> |
| 52 | |
| 53 | <refsect1> |
| 54 | <title>Examples</title> |
| 55 | <para> |
| 56 | Here is a simple example of the framebuffer opcode. It uses the file <ulink url="examples/framebuffer.csd"><citetitle>framebuffer.csd</citetitle></ulink>. |
| 57 | |
| 58 | <example> |
| 59 | <title>Example of the framebuffer opcode.</title> |
| 60 | |
| 61 | <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> |
| 62 | <xi:include href="examples-xml/framebuffer.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 63 | </example> |
| 64 | </para> |
| 65 | |
| 66 | </refsect1> |
| 67 | |
| 68 | <refsect1> |
| 69 | <title>See Also</title> |
| 70 | <para><link linkend="arraysfft"><citetitle></citetitle>Array-based spectral opcodes</link></para> |
| 71 | </refsect1> |
| 72 | |
| 73 | <refsect1> |
| 74 | <title>Credits</title> |
| 75 | <para> |
| 76 | <simplelist> |
| 77 | <member>Author: Edward Costello;</member> |
| 78 | <member>NUIM, 2015</member> |
| 79 | </simplelist> |
| 80 | </para> |
| 81 | <para>New in version 6.06</para> |
| 82 | </refsect1> |
| 83 | </refentry> |