Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 6ed14ebfd686aa32f7956e552aa2e21d > files > 3050

csound-manual-5.13.0-5.fc15.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>vstmidiout</title>
    <link rel="stylesheet" href="csound.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2" />
    <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="vstinfo.html" title="vstinfo" />
    <link rel="next" href="vstnote.html" title="vstnote" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">vstmidiout</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="vstinfo.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="vstnote.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="vstmidiout">
      <a id="vstmidiout"></a>
      <div class="titlepage"></div>
      <a id="IndexVstMidiOut" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">vstmidiout</span>
        </h2>
        <p>vstmidiout — Sends MIDI information to a VST plugin.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id3354593"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>vstmidiout</strong></span> instance, kstatus, kchan, kdata1, kdata2</pre>
      </div>
      <div class="refsect1" title="Description">
        <a id="id3354620"></a>
        <h2>Description</h2>
        <p><span class="emphasis"><em>vstmidiout</em></span> is used for sending MIDI information to a VST plugin.</p>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id3354633"></a>
        <h2>Initialization</h2>
        <p><span class="emphasis"><em>instance</em></span> - the number which identifies the
      plugin, to be passed to other vst4cs opcodes.</p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id3354647"></a>
        <h2>Performance</h2>
        <p><span class="emphasis"><em>kstatus</em></span> - the type of midi message to be
      sent. Currently noteon (144), note off (128), Control Change (176),
      Program change (192), Aftertouch (208) and Pitch Bend (224) are
      supported.</p>
        <p><span class="emphasis"><em>kchan</em></span> - the MIDI channel transmitted
      on.</p>
        <p><span class="emphasis"><em>kdata1, kdata2</em></span> - the MIDI data pair, which
      varies depending on kstatus. e.g. note/velocity for note on and note
      off, Controller number/value for control change.</p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="id3355444"></a>
        <h2>Examples</h2>
        <div class="example">
          <a id="id3355449"></a>
          <p class="title">
            <b>Example 686. Example for vstmidiout</b>
          </p>
          <div class="example-contents">
            <pre class="programlisting">
/* orc */
sr = 44100
kr = 4410
ksmps = 10
nchnls = 2
gihandle1 vstinit "c:/vstplugins/cheeze/cheeze machine.dll",1
instr 3
ain1 = 0
ab1, ab2 vstaudio gihandle1, ain1, ain1
outs ab1, ab2
endin
instr 4
vstmidiout gihandle1,144,1,p4,p5
endin



/* sco */
i 3 0 21
i4 1 1 57 32
i4 3 1 60 100
i4 5 1 62 100
i4 7 1 64 100
i4 9 1 65 100
i4 11 1 67 100
i4 13 1 69 100
i4 15 3 71 100
i4 18 3 72 100
e
      </pre>
          </div>
        </div>
        <br class="example-break" />
      </div>
      <div class="refsect1" title="Credits">
        <a id="id3355469"></a>
        <h2>Credits</h2>
        <p>By: Andrés Cabrera and Michael Gogins</p>
        <p>Uses code from Hermann Seib's VSTHost and Thomas Grill's vst~
      object.</p>
        <p>VST is a trademark of Steinberg Media Technologies GmbH. 
      VST Plug-In Technology by Steinberg.</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="vstinfo.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="vstnote.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">vstinfo </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> vstnote</td>
        </tr>
      </table>
    </div>
  </body>
</html>