| 1 | |
| 2 | <refentry id="midiout_i"> |
| 3 | <indexterm id="IndexMidiout_I"><primary>midiout_i</primary></indexterm> |
| 4 | <refentryinfo><title>Real-time MIDI:Generic I/O</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>midiout_i</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>midiout_i</refname> |
| 13 | |
| 14 | <refpurpose> |
| 15 | Sends a generic MIDI message to the MIDI OUT port. |
| 16 | </refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | <refsect1> |
| 20 | <title>Description</title> |
| 21 | <para> |
| 22 | Sends a generic MIDI message to the MIDI OUT port. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis><command>midiout_i</command> istatus, ichan, idata1, idata2</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialisation</title> |
| 33 | <para> |
| 34 | <emphasis>istatus</emphasis> -- the type of MIDI message. Can be: |
| 35 | <itemizedlist> |
| 36 | <listitem><para>128 (note off)</para></listitem> |
| 37 | <listitem><para>144 (note on)</para></listitem> |
| 38 | <listitem><para>160 (polyphonic aftertouch)</para></listitem> |
| 39 | <listitem><para>176 (control change)</para></listitem> |
| 40 | <listitem><para>192 (program change)</para></listitem> |
| 41 | <listitem><para>208 (channel aftertouch)</para></listitem> |
| 42 | <listitem><para>224 (pitch bend)</para></listitem> |
| 43 | <listitem><para>0 when no MIDI messages must be sent to the MIDI OUT port</para></listitem> |
| 44 | </itemizedlist> |
| 45 | </para> |
| 46 | |
| 47 | <para> |
| 48 | <emphasis>ichan</emphasis> -- MIDI channel (1-16) |
| 49 | </para> |
| 50 | |
| 51 | <para> |
| 52 | <emphasis>idata1, idata2</emphasis> -- message-dependent data values |
| 53 | </para> |
| 54 | |
| 55 | <para> |
| 56 | <emphasis>midiout_i</emphasis> has no output arguments, because it sends a message to the MIDI OUT port implicitly. It works at i-time. It sends a MIDI message only when <emphasis>istatus</emphasis> is non-zero. |
| 57 | </para> |
| 58 | </refsect1> |
| 59 | |
| 60 | <refsect1> |
| 61 | <title>Examples</title> |
| 62 | <para> |
| 63 | Here is an example of the midiout_i opcode. It uses the file <ulink url="examples/midiout_i.csd"><citetitle>midiout_i.csd</citetitle></ulink>. |
| 64 | <example> |
| 65 | <title>Example of the midiout_i opcode.</title> |
| 66 | <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> |
| 67 | <xi:include href="examples-xml/midiout_i.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 68 | </example> |
| 69 | </para> |
| 70 | </refsect1> |
| 71 | |
| 72 | <refsect1> |
| 73 | <title>See also</title> |
| 74 | <para><link linkend="MidiOutput"><citetitle>MIDI Message Output</citetitle></link></para> |
| 75 | <para><link linkend="MidiGeneric"><citetitle>Generic Input and Output</citetitle></link></para> |
| 76 | </refsect1> |
| 77 | |
| 78 | <refsect1> |
| 79 | <title>Credits</title> |
| 80 | <para> |
| 81 | <simplelist> |
| 82 | <member>Author: &namegabriel;</member> |
| 83 | <member>Italy</member> |
| 84 | <member>1998</member> |
| 85 | </simplelist> |
| 86 | </para> |
| 87 | |
| 88 | <para>New in Csound version 6.10</para> |
| 89 | </refsect1> |
| 90 | </refentry> |