Debian Codegraph @

overview/realtimemac.xml

raw symbols SCIP
1
2 <section id="RealTimeMac">
3 <title>Mac OSX</title>
4 <bridgehead>Real-time Audio</bridgehead>
5 <para>
6 OSX users can use either the <emphasis>PortAudio</emphasis>
7 (default),<emphasis>auhal</emphasis>(or coreaudio), or the
8 <emphasis>Jack</emphasis> realtime audio modules. The auhal module
9 is a native OSX module which provides good latency, but it might
10 not work with some external hardware. The Jack module can be used
11 for interconnecting with other applications, but you will need to
12 install the JackOSX software in order to use it. To activate a
13 realtime module, you can use the <link
14 linkend="FlagsCatMinusPlusRtaudio"><citetitle>-+rtaudio</citetitle></link>
15 flag with value of <emphasis>portaudio</emphasis>,
16 <emphasis>auhal</emphasis>, or <emphasis>jack</emphasis>. The default value is <emphasis>portaudio</emphasis>, which is activated by default without specifying it.
17 </para>
18 <para>
19 You also need to specify the sound device you want to use, and
20 specify that you want to generate real-time audio ouput instead of
21 soundfile to disk output. To do this, you must use the <link
22 linkend="FlagsCatMinusLowerOdac"><citetitle>-odac</citetitle></link>
23 or <link linkend="FlagsCatMinusLowerOdac"><citetitle>-o
24 dac</citetitle></link> flag, which tells csound to output to the
25 Digital-to-Analog converters instead of a file. By adding a number
26 after the flag (e.g. -odac2), you can choose the device number you
27 want. To find out available devices in your system, you can use a
28 large out of range number (e.g. -odac99), and Csound will report
29 an error, and list available devices. This numbering convention
30 works for portaudio and auhal, but for Jack, you will need to
31 pass the name of the desired output device after a colon (e.g. -odac:system:playback_).
32 </para>
33 <para>
34 Enabling realtime audio input is done using <link
35 linkend="FlagsCatMinusLowerIadc"><citetitle>-iadc</citetitle></link>,
36 which makes csound listen to the realtime audio inputs. You can
37 again select the device by its number (or name), and check for available devices using an out of range number. Note that for input you use 'adc' instead of 'dac'. Make sure you have the appropriate input selected in your soundcard's control panel.
38 </para>
39 <bridgehead>Real-time MIDI</bridgehead>
40 <para>
41 To enable Real-time MIDI on OSX, you can use the <link linkend="FlagsCatMinusUpperM"><citetitle>-M</citetitle></link> flag for MIDI input and the <link linkend="FlagsCatMinusUpperQ"><citetitle>-Q</citetitle></link> flag for MIDI output. You might need to specify the device number after the flag (e.g. -M2), and again, you can find the available devices by giving an out of range number.
42 </para>
43 <para>
44 Csound will use PortMidi as the default MIDI module. With PortMIDI, DEVICE is either a number for single port input, 'a' for listening to all input ports, or 'm' for mapping ports to MIDI channels above 16. In this case, device 0 uses 1-16, device 1 uses 17-32, ... device N uses (N+1)*channel. The options 'a' and 'm' are also convenient when you don't have devices as they will not generate an error.
45 </para>
46 <screen>
47 -+rtmidi=PortMIDI -Ma -Q 1</screen>
48
49 <para>
50 There's also a native coremidi module, which can be activated with the flag:
51 </para>
52 <literallayout>
53 -+rtmidi=cmidi
54 </literallayout>
55 <para>
56 The coremidi module corrently only supports MIDI input.
57 </para>
58 <para>
59 A typical set of flags to enable Real-time Audio and MIDI I/O can look like:
60 </para>
61 <literallayout>
62 -+rtmidi=cmidi -M1 -+rtaudio=auhal-odac3 -iadc3
63 </literallayout>
64 </section>