| 1 | |
| 2 | <refentry id="resony"> |
| 3 | <indexterm id="IndexResony"><primary>resony</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Standard Filters:Resonant</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>resony</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>resony</refname> |
| 13 | <refpurpose> |
| 14 | A bank of second-order bandpass filters, connected in parallel. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | A bank of second-order bandpass filters, connected in parallel. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ares <command>resony</command> asig, kbf, kbw, inum, ksep [, isepmode] [, iscl] [, iskip]</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>inum</emphasis> -- number of filters |
| 34 | </para> |
| 35 | |
| 36 | <para> |
| 37 | <emphasis>isepmode</emphasis> (optional, default=0) -- if <emphasis>isepmode</emphasis> = 0, the separation of center frequencies of each filter is generated logarithmically (using octave as unit of measure). If <emphasis>isepmode</emphasis> not equal to 0, the separation of center frequencies of each filter is generated linearly (using Hertz). Default value is 0. |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | <emphasis>iscl</emphasis> (optional, default=0) -- coded scaling factor for resonators. A value of 1 signifies a peak response factor of 1, i.e. all frequencies other than <emphasis>kcf</emphasis> are attenuated in accordance with the (normalized) response curve. A value of 2 raises the response factor so that its overall RMS value equals 1. (This intended equalization of input and output power assumes all frequencies are physically present; hence it is most applicable to white noise.) A zero value signifies no scaling of the signal, leaving that to some later adjustment (e.g. <link linkend="balance"><citetitle>balance</citetitle></link>). The default value is 0. |
| 42 | </para> |
| 43 | |
| 44 | <para> |
| 45 | <emphasis>iskip</emphasis> (optional, default=0) -- initial disposition of internal data space. Since filtering incorporates a feedback loop of previous output, the initial status of the storage space used is significant. A zero value will clear the space; a non-zero value will allow previous information to remain. The default value is 0. |
| 46 | </para> |
| 47 | </refsect1> |
| 48 | |
| 49 | <refsect1> |
| 50 | <title>Performance</title> |
| 51 | <para> |
| 52 | <emphasis>asig</emphasis> -- audio input signal |
| 53 | </para> |
| 54 | |
| 55 | <para> |
| 56 | <emphasis>kbf</emphasis> -- base frequency, i.e. center frequency of lowest filter in Hz |
| 57 | </para> |
| 58 | |
| 59 | <para> |
| 60 | <emphasis>kbw</emphasis> -- bandwidth in Hz |
| 61 | </para> |
| 62 | |
| 63 | <para> |
| 64 | <emphasis>ksep</emphasis> -- separation of the center frequency of filters in octaves |
| 65 | </para> |
| 66 | |
| 67 | <para> |
| 68 | <emphasis>resony</emphasis> is a bank of second-order bandpass filters, with k-rate variant frequency separation, base frequency and bandwidth, connected in parallel (i.e. the resulting signal is a mix of the output of each filter). The center frequency of each filter depends of <emphasis>kbf</emphasis> and <emphasis>ksep</emphasis> variables. The maximum number of filters is set to 100. |
| 69 | </para> |
| 70 | </refsect1> |
| 71 | |
| 72 | <refsect1> |
| 73 | <title>Examples</title> |
| 74 | <para> |
| 75 | Here is an example of the resony opcode. It uses the file <ulink url="examples/resony.csd"><citetitle>resony.csd</citetitle></ulink>. |
| 76 | <example> |
| 77 | <title>Example of the resony opcode.</title> |
| 78 | <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> |
| 79 | <xi:include href="examples-xml/resony.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 80 | </example> |
| 81 | </para> |
| 82 | </refsect1> |
| 83 | |
| 84 | <refsect1> |
| 85 | <title>See also</title> |
| 86 | <para><link linkend="SigmodStandard"><citetitle>Standard Filters: Resonant Low-pass filters</citetitle></link></para> |
| 87 | </refsect1> |
| 88 | |
| 89 | <refsect1> |
| 90 | <title>Credits</title> |
| 91 | <para> |
| 92 | <simplelist> |
| 93 | <member>Author: &namegabriel;</member> |
| 94 | <member>Italy</member> |
| 95 | <member>1999</member> |
| 96 | </simplelist> |
| 97 | </para> |
| 98 | <para>New in Csound version 3.56</para> |
| 99 | </refsect1> |
| 100 | </refentry> |