| 1 | |
| 2 | <refentry id="lorisplay"> |
| 3 | <indexterm id="IndexLorisPlay"><primary>lorisplay</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Loris</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>lorisplay</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | <refnamediv> |
| 11 | <refname>lorisplay</refname> |
| 12 | <refpurpose>renders a stored set of bandwidth-enhanced partials using the method of Bandwidth-Enhanced Additive Synthesis implemented in the Loris software, applying control-rate frequency, amplitude, and bandwidth scaling envelopes.</refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Syntax</title> |
| 17 | <synopsis>ar <command>lorisplay</command> ireadidx, kfreqenv, kampenv, kbwenv</synopsis> |
| 18 | </refsect1> |
| 19 | |
| 20 | <refsect1> |
| 21 | <title>Description</title> |
| 22 | |
| 23 | <para><emphasis>lorisplay</emphasis> renders a stored set of |
| 24 | bandwidth-enhanced partials using the method of Bandwidth-Enhanced |
| 25 | Additive Synthesis implemented in the Loris software, applying |
| 26 | control-rate frequency, amplitude, and bandwidth scaling |
| 27 | envelopes.</para> |
| 28 | |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para><emphasis>istoreidx, ireadidx, isrcidx, itgtidx</emphasis> are |
| 34 | labels that identify a stored set of bandwidth-enhanced |
| 35 | partials. <emphasis>lorisread</emphasis> imports partials from a SDIF file and stores them |
| 36 | with the integer label istoreidx. <emphasis>lorismorph</emphasis> morphs sets of partials |
| 37 | labeled <emphasis>isrcidx</emphasis> and <emphasis>itgtidx</emphasis>, and stores the resulting partials with |
| 38 | the integer label <emphasis>istoreidx</emphasis>. <emphasis>lorisplay</emphasis> renders the partials stored |
| 39 | with the label <emphasis>ireadidx</emphasis>. The labels are used only at initialization |
| 40 | time, and may be reused without any cost or benefit in efficiency, and |
| 41 | without introducing any interaction between instruments or |
| 42 | instances.</para> |
| 43 | |
| 44 | </refsect1> |
| 45 | |
| 46 | <refsect1> |
| 47 | <title>Performance</title> |
| 48 | <para><emphasis>lorisplay</emphasis> implements signal reconstruction using |
| 49 | Bandwidth-Enhanced Additive Synthesis. The control data is obtained |
| 50 | from a stored set of bandwidth-enhanced partials imported from an SDIF |
| 51 | file using <emphasis>lorisread</emphasis> or constructed by another unit generator such as |
| 52 | <emphasis>lorismorph</emphasis>. <emphasis>kfreqenv</emphasis> is a control-rate transposition factor: a value |
| 53 | of 1 incurs no transposition, 1.5 transposes up a perfect fifth, and |
| 54 | .5 down an octave. <emphasis>kampenv</emphasis> is a control-rate scale factor that is |
| 55 | applied to all partial amplitude envelopes. kbwenv is a control-rate |
| 56 | scale factor that is applied to all partial bandwidth or noisiness |
| 57 | envelopes. The bandwidth-enhanced partial data is stored in memory |
| 58 | with a specified label for future access by another generator.</para> |
| 59 | </refsect1> |
| 60 | |
| 61 | <refsect1> |
| 62 | <title>Examples</title> |
| 63 | <para> |
| 64 | Here is an example of the lorisplay opcode. It uses the file <ulink url="examples/lorisplay.csd"><citetitle>lorisplay.csd</citetitle></ulink>. |
| 65 | <example> |
| 66 | <title>Example of the lorisplay opcode.</title> |
| 67 | <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> |
| 68 | <xi:include href="examples-xml/lorisplay.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 69 | </example> |
| 70 | </para> |
| 71 | </refsect1> |
| 72 | |
| 73 | <refsect1> |
| 74 | <title>Credits</title> |
| 75 | <para>This implementation of the Loris unit generators was written by Kelly |
| 76 | Fitz (<ulink |
| 77 | url="mailto:[email protected]">[email protected]</ulink>). It is patterned after a prototype implementation of the |
| 78 | <emphasis>lorisplay</emphasis> unit generator written by Corbin Champion, and based on the |
| 79 | method of Bandwidth-Enhanced Additive Synthesis and on the sound |
| 80 | morphing algorithms implemented in the Loris library for sound |
| 81 | modeling and manipulation. The opcodes were further adapted as a |
| 82 | plugin for Csound 5 by Michael Gogins.</para> |
| 83 | </refsect1> |
| 84 | |
| 85 | </refentry> |