Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > b707d9a4ee443103660a75ccb6e51334 > files > 551

csound-doc-5.19.01-10.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>dssiaudio</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.76.1" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" />
    <link rel="prev" href="dssiactivate.html" title="dssiactivate" />
    <link rel="next" href="dssictls.html" title="dssictls" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">dssiaudio</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="dssiactivate.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="dssictls.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="dssiaudio">
      <a id="dssiaudio"></a>
      <div class="titlepage"></div>
      <a id="IndexDssiAudio" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">dssiaudio</span>
        </h2>
        <p>dssiaudio — Processes audio using a LADSPA or DSSI plugin.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp18682280"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">[aout1, aout2, ..., aout9] <span class="command"><strong>dssiaudio</strong></span> ihandle, [ain1, ain2, ..., ain9]</pre>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp18726152"></a>
        <h2>Description</h2>
        <p><span class="emphasis"><em>dssiaudio</em></span> generates audio by processing an input signal through a LADSPA plugin.</p>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp18726952"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>ihandle</em></span>  - handle for the plugin returned by <a class="link" href="dssiinit.html" title="dssiinit"><em class="citetitle">dssiinit</em></a>
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="idp18728272"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>aout1, aout2, etc</em></span> - Audio ouput generated by the plugin
    </p>
        <p>
      <span class="emphasis"><em>ain1, ain2, etc</em></span> - Audio provided to the plugin for processing
    </p>
        <p>
      <span class="emphasis"><em>dssiaudio</em></span> runs a plugin on the provided audio and produces audio output. Currently upto four inputs and outputs are provided. You should provide signal for all the plugins audio inputs, otherwise unpredictable results may occur. If the plugin doesn't have any input (e.g Noise generator) you must still provide at least one input variable, which will be ignored with a message.
    </p>
        <p>
      Only one <span class="emphasis"><em>dssiaudio</em></span> should be executed once per plugin, or strange results may occur.
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp18730904"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the dssiaudio opcode. It uses the file <a class="ulink" href="examples/dssiaudio.csd" target="_top"><em class="citetitle">dssiaudio.csd</em></a>.
            </p>
        <div class="example">
          <a id="idp18731904"></a>
          <p class="title">
            <strong>Example 189. Example of the dssiaudio opcode.</strong>
          </p>
          <div class="example-contents">
            <p>See the sections <a class="link" href="UsingRealTime.html" title="Real-Time Audio"><em class="citetitle">Real-time Audio</em></a> and <a class="link" href="CommandFlags.html" title="Csound command line"><em class="citetitle">Command Line Flags</em></a> for more information on using command line flags.</p>
            <pre class="programlisting">
<span class="csdtag">&lt;CsoundSynthesizer&gt;</span>
<span class="csdtag">&lt;CsOptions&gt;</span>
<span class="comment">; Select audio/midi flags here according to platform</span>
-odac     <span class="comment">;;;RT audio out</span>
<span class="comment">;-iadc    ;;;uncomment -iadc if RT audio input is needed too</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o DSSIplay_mono.wav -W ;;; for file output any platform</span>
<span class="csdtag">&lt;/CsOptions&gt;</span>
<span class="csdtag">&lt;CsInstruments&gt;</span>

<span class="ohdr">sr</span> <span class="op">=</span> 44100
<span class="ohdr">ksmps</span> <span class="op">=</span> 32
<span class="ohdr">nchnls</span> <span class="op">=</span> 2

gihandle <span class="opc">dssiinit</span> "caps.so", 19, 1	<span class="comment">; = mono phaser and</span>
gaout    <span class="opc">init</span>  0			<span class="comment">; verbose about all ports</span>

<span class="oblock">instr</span> 1	<span class="comment">; activate DSSI</span>

<span class="opc">dssiactivate</span> gihandle, 1
<span class="oblock">endin</span>

<span class="oblock">instr</span> 2
ain1	<span class="opc">diskin2</span> "beats.wav", 1,0,1	<span class="comment">; loop</span>

gaout <span class="op">=</span> gaout<span class="op">+</span>(ain1<span class="op">*</span>.5)
<span class="oblock">endin</span>

<span class="oblock">instr</span> 3

<span class="opc">dssictls</span> gihandle, 0, .8, 1		<span class="comment">; range -1 to 1</span>
<span class="opc">dssictls</span> gihandle, 1, .05, 1		<span class="comment">; rate 0 to 10</span>
<span class="opc">dssictls</span> gihandle, 2, .8, 1		<span class="comment">; depth 0 to 1</span>
<span class="opc">dssictls</span> gihandle, 3, 2, 1		<span class="comment">; spread 0 to 3.14</span>
<span class="opc">dssictls</span> gihandle, 4, .7, 1		<span class="comment">; feedback 0 to 0.999</span>

<span class="oblock">endin</span>

<span class="oblock">instr</span> 4

aout1 <span class="opc">dssiaudio</span> gihandle, gaout	<span class="comment">;get beats.wav, mono out</span>
      <span class="opc">outs</span> aout1,aout1

gaout <span class="op">=</span> 0

<span class="oblock">endin</span>
<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>
<span class="stamnt">i</span> 1 0 20 
<span class="stamnt">i</span> 2 1 20
<span class="stamnt">i</span> 3 1 20
<span class="stamnt">i</span> 4 0 20

<span class="stamnt">e</span>
<span class="csdtag">&lt;/CsScore&gt;</span>
<span class="csdtag">&lt;/CsoundSynthesizer&gt;</span>
</pre>
          </div>
        </div>
        <p><br class="example-break" />
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="idp18734184"></a>
        <h2>Credits</h2>
        <p>2005</p>
        <p>By: Andrés Cabrera</p>
        <p>Uses code from Richard Furse's LADSPA sdk.</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="dssiactivate.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="OpcodesTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="dssictls.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">dssiactivate </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> dssictls</td>
        </tr>
      </table>
    </div>
  </body>
</html>