| 1 |
<chapter id="JackoOpcodes"> |
| 2 |
<title>Jacko Opcodes</title> |
| 3 |
|
| 4 |
<para> |
| 5 |
These opcodes enable the use of Jack ports from within Csound |
| 6 |
orchestras and instruments. Ports can receive or send audio |
| 7 |
or MIDI data, and send note data. |
| 8 |
</para> |
| 9 |
|
| 10 |
<para> |
| 11 |
The Jacko opcodes do not replace the Jack driver and Jack |
| 12 |
command-line options for Csound, nor do the Jacko opcodes work |
| 13 |
with them (hence the name "Jacko" instead of "Jack"). |
| 14 |
The Jacko opcodes are an independent facility that offers |
| 15 |
greater flexibility in signal routing. |
| 16 |
</para> |
| 17 |
|
| 18 |
<para> |
| 19 |
It is Jack that calls csoundPerformKsmps.The k-rate speed is |
| 20 |
not dictated by Csound, it is dictated by the Jack DAEMON |
| 21 |
configuration: --period. Csound has to agree to that. |
| 22 |
</para> |
| 23 |
|
| 24 |
<para> |
| 25 |
In addition, the Jacko opcodes can work with the Jack system |
| 26 |
in "freewheeling" mode, which enables the use of Jack-enabled |
| 27 |
external synthesizers, such as Aeolus or Pianoteq, to render |
| 28 |
Csound pieces either faster or, even more importantly, slower |
| 29 |
than real time. This is extremely useful for rendering complex |
| 30 |
pieces without dropouts using instruments, such as Aeolus, |
| 31 |
that may not be available except through Jack (see example below). |
| 32 |
A second example shows midi connections to external synthesizers |
| 33 |
and a midi connection from an external keyboard. |
| 34 |
|
| 35 |
</para> |
| 36 |
|
| 37 |
<para> |
| 38 |
The Jacko opcodes include: |
| 39 |
|
| 40 |
<link linkend="JackoInit"><citetitle>JackoInit</citetitle></link>, |
| 41 |
for initializing the current instance of Csound as a Jack client. |
| 42 |
|
| 43 |
<link linkend="JackoInfo"><citetitle>JackoInfo</citetitle></link>, |
| 44 |
for printing information about the Jack daemon, its clients, their ports, |
| 45 |
and their connections. |
| 46 |
|
| 47 |
<link linkend="JackoFreewheel"><citetitle>JackoFreewheel</citetitle></link>, |
| 48 |
for turning Jack's freewheeling mode on or off. |
| 49 |
|
| 50 |
<link linkend="JackoAudioInConnect"><citetitle>JackoAudioInConnect</citetitle></link>, |
| 51 |
for creating a connection from an external Jack audio output port to a Jack port in Csound. |
| 52 |
|
| 53 |
<link linkend="JackoAudioOutConnect"><citetitle>JackoAudioOutConnect</citetitle></link>, |
| 54 |
for creating a connection from a Jack port in Csound to an external Jack audio input port. |
| 55 |
|
| 56 |
<link linkend="JackoMidiInConnect"><citetitle>JackoMidiInConnect</citetitle></link>, |
| 57 |
for creating a connection from an external Jack MIDI port. MIDI events from Jack |
| 58 |
are received by Csound's regular MIDI opcodes and MIDI interop system. |
| 59 |
|
| 60 |
<link linkend="JackoMidiOutConnect"><citetitle>JackoMidiOutConnect</citetitle></link>, |
| 61 |
for creating a connection from a Jack port in Csound to an external Jack MIDI input port. |
| 62 |
|
| 63 |
<link linkend="JackoOn"><citetitle>JackoOn</citetitle></link>, |
| 64 |
for turning Jack ports in Csound on or off. |
| 65 |
|
| 66 |
<link linkend="JackoAudioIn"><citetitle>JackoAudioIn</citetitle></link>, |
| 67 |
for receiving audio from a Jack input port in Csound, which in turn has received the audio |
| 68 |
from its connected external port. |
| 69 |
|
| 70 |
<link linkend="JackoAudioOut"><citetitle>JackoAudioOut</citetitle></link>, |
| 71 |
for sending audio to a Jack output port in Csound, which in turn will send the audio |
| 72 |
on to its connected external port. |
| 73 |
|
| 74 |
<link linkend="JackoMidiOut"><citetitle>JackoMidiOut</citetitle></link>, |
| 75 |
for sending MIDI channel messages to a Jack output port in Csound, which in turn |
| 76 |
will send the MIDI on to its connected external port. |
| 77 |
|
| 78 |
<link linkend="JackoNoteOut"><citetitle>JackoNoteOut</citetitle></link>, |
| 79 |
for sending a note (with duration) to a Jack output port in Csound, |
| 80 |
which in turn will send the note on to its connected external port. |
| 81 |
|
| 82 |
<link linkend="JackoTransport"><citetitle>JackoTransport</citetitle></link>, |
| 83 |
for controlling the Jack transport. |
| 84 |
</para> |
| 85 |
|
| 86 |
<para> |
| 87 |
A typical scenario for the use of the Jacko opcodes would be something like this. |
| 88 |
</para> |
| 89 |
|
| 90 |
<refsect1> |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
<title>Example</title> |
| 95 |
<para> |
| 96 |
Here is an example of the Jacko opcodes. It uses the file <ulink url="examples/jacko.csd"><citetitle>jacko.csd</citetitle></ulink>. |
| 97 |
<example> |
| 98 |
<title>Example of the Jacko opcodes.</title> |
| 99 |
<xi:include href="examples-xml/jacko.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 100 |
</example> |
| 101 |
</para> |
| 102 |
<para> |
| 103 |
Here is a second example of the Jacko opcodes. It uses the file <ulink url="examples/jacko_extSynths.csd"><citetitle>jacko_extSynths.csd</citetitle></ulink>. |
| 104 |
<example> |
| 105 |
<title>Another example of the Jacko opcodes.</title> |
| 106 |
<xi:include href="examples-xml/jacko_extSynths.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 107 |
</example> |
| 108 |
</para> |
| 109 |
</refsect1> |
| 110 |
|
| 111 |
<refsect1> |
| 112 |
<title>Credits</title> |
| 113 |
<para>By: &namemichael; 2010</para> |
| 114 |
</refsect1> |
| 115 |
|
| 116 |
</chapter> |