Debian Codegraph @

command/flags.xml

raw symbols SCIP
1 <!--<section id="CommandFlags">
2 <title>The Csound Command</title>-->
3 <refentry id="CommandFlags">
4 <indexterm id="IndexCommandFlags"><primary>Command Line Flags</primary></indexterm>
5 <refmeta>
6 <refentrytitle>Csound command line</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>csound</refname>
11 <!-- <refpurpose>
12 Csound command.
13 </refpurpose> -->
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 The <emphasis>csound</emphasis> command executes Csound.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>csound</command> <arg><option>flags</option></arg> <arg>orchname</arg> <arg>scorename</arg></synopsis>
26 <synopsis><command>csound</command> <arg><option>flags</option></arg> <arg>csdfilename</arg></synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Csound command line flags</title>
31 <para>
32 Listed below are the command line flags available in Csound6 in alphabetical order. Various platform
33 implementations may not react the same way to different flags! You can view the command line flags organized by category in <link linkend="CommandFlagsCategory"><citetitle>Command-line Flags (by Category)</citetitle></link>.
34 </para>
35 <para>
36 The command line arguments are of 2 types: <emphasis>flags</emphasis> arguments (beginning with a <quote>-</quote>,<quote>--</quote> or <quote>-+</quote>), and <emphasis>name</emphasis> arguments (such as filenames). Certain flag arguments take a following name or numeric argument. Flags that start with <quote>--</quote> and <quote>-+</quote> usually take an argument themselves using <quote>=</quote>.
37 </para>
38
39 <variablelist>
40 <title>Command-line Flags</title>
41 <varlistentry id="FlagsMinusAt">
42 <term>-&commat; FILE<indexterm id="IndexMinusAt"><primary>-&commat;</primary></indexterm></term>
43 <listitem>
44 <para>
45 Provide an extended command-line in file <quote>FILE</quote>
46 </para>
47 </listitem>
48 </varlistentry>
49 <varlistentry id="FlagsMinus3">
50 <term>-3<indexterm id="IndexMinus3"><primary>-3</primary></indexterm>, --format=24bit<indexterm id="IndexMinusFormat24bit"><primary>--format=24bit</primary></indexterm></term>
51 <listitem>
52 <para>
53 Use 24-bit audio samples.
54 </para>
55 </listitem>
56 </varlistentry>
57 <varlistentry id="FlagsMinus8">
58 <term>-8<indexterm id="IndexMinus8"><primary>-8</primary></indexterm>, --format=uchar<indexterm id="IndexMinusFormatUchar"><primary>--format=uchar</primary></indexterm></term>
59 <listitem>
60 <para>
61 Use 8-bit unsigned character audio samples.
62 </para>
63 </listitem>
64 </varlistentry>
65 <varlistentry id="FlagsMinusFormat">
66 <term>--format=<emphasis>type</emphasis><indexterm id="IndexMinusFormat"><primary>--format</primary></indexterm></term>
67 <listitem>
68 <para>
69 Set the audio file output format to one of the formats
70 available in libsndfile. At present the list is
71 aiff, au, avr, caf, flac, htk, ircam, mat4, mat5, MPC,
72 nist, ogg, paf, pvf, raw, sd2, sds, svx, voc, w64, W64,
73 wav, wavex, WVE, xi.
74 Can also be used as --format=type:format or --format=format:type
75 to set both the file type (wav, aiff, etc.) and sample format
76 (short, long, float, etc.) at the same time.
77 </para>
78 </listitem>
79 </varlistentry>
80 <varlistentry id="FlagsMinusUpperA">
81 <term>-A<indexterm id="IndexMinusUpperA"><primary>-A</primary></indexterm>, --aiff<indexterm id="IndexMinusAiff"><primary>--aiff</primary></indexterm>, --format=aiff<indexterm id="IndexMinusFAiff"><primary>--format=aiff</primary></indexterm></term>
82 <listitem>
83 <para>
84 Write an AIFF format soundfile. Use with the <link linkend="FlagsMinusLowerC"><citetitle>-c</citetitle></link>, <link linkend="FlagsMinusLowerS"><citetitle>-s</citetitle></link>, <link linkend="FlagsMinusLowerL"><citetitle>-l</citetitle></link>, or <link linkend="FlagsMinusLowerF"><citetitle>-f</citetitle></link> flags.
85 </para>
86 </listitem>
87 </varlistentry>
88 <varlistentry id="FlagsMinusLowerA">
89 <term>-a<indexterm id="IndexMinusLowerA"><primary>-a</primary></indexterm>, --format=alaw<indexterm id="IndexMinusFormatAlaw"><primary>--format=alaw</primary></indexterm></term>
90 <listitem>
91 <para>
92 Use a-law audio samples.
93 </para>
94 </listitem>
95 </varlistentry>
96 <varlistentry id="FlagsMinusAftzero">
97 <term>--aft-zero<indexterm id="IndexMinusAftzero"><primary>--aft-zero></primary></indexterm></term>
98 <listitem>
99 <para>
100 Use zero as initial value of after-touch.
101 </para>
102 </listitem>
103 </varlistentry>
104
105 <varlistentry id="FlagsMinusUpperB">
106 <term>-B NUM<indexterm id="IndexMinusUpperB"><primary>-B</primary></indexterm>, --hardwarebufsamps=NUM<indexterm id="IndexMinusHardwarebufsamps"><primary>--hardwarebufsamps</primary></indexterm></term>
107 <listitem>
108 <para>
109 Number of audio sample-frames held in the DAC <emphasis>hardware</emphasis> buffer. This is a threshold on which <emphasis>software</emphasis> audio I/O (above) will wait before returning. A small number reduces audio I/O delay; but the value is often hardware limited, and small values will risk data lates. In the case of portaudio output (the default real-time output), the -B parameter (more precisely, -B / sr) is passed as the "suggested latency" value. Other than that, Csound has no control over how PortAudio interprets the parameter. The default is 1024 on Linux, 4096 on Mac OS X and 16384 on Windows.
110 </para>
111 </listitem>
112 </varlistentry>
113 <varlistentry id="FlagsMinusLowerB">
114 <term>-b NUM<indexterm id="IndexMinusLowerB"><primary>-b</primary></indexterm>, --iobufsamps=NUM<indexterm id="IndexMinusIobufsamps"><primary>--iobufsamps</primary></indexterm></term>
115 <listitem>
116 <para>
117 Number of audio sample-frames per sound i/o <emphasis>software</emphasis> buffer. Large is efficient, but small will reduce audio I/O delay and improve the accuracy of the timing of real time events. The default is 256 on Linux, 1024 on MacOS X, and 4096 on Windows. In real-time performance, Csound waits on audio I/O on <emphasis>NUM</emphasis> boundaries. It also processes audio (and polls for other input like MIDI) on orchestra <emphasis>ksmps</emphasis> boundaries. The two can be made synchronous. For convenience, if NUM is negative, the effective value is <emphasis>ksmps * -NUM</emphasis> (audio synchronous with k-period boundaries). With NUM small (e.g. 1) polling is then frequent and also locked to fixed DAC sample boundaries.
118 </para>
119 <para>
120 Note: if both -iadc and -odac are used at the same time (full duplex
121 real time audio), the -b option should be set to an integer multiple
122 of ksmps.
123 </para>
124 </listitem>
125 </varlistentry>
126 <varlistentry id="FlagsMinusUpperC">
127 <term>-C<indexterm id="IndexMinusUpperC"><primary>-C</primary></indexterm>, --cscore<indexterm id="IndexMinusCscore"><primary>--cscore</primary></indexterm></term>
128 <listitem>
129 <para>
130 Use Cscore processing of the scorefile.
131 </para>
132 </listitem>
133 </varlistentry>
134 <varlistentry id="FlagsMinusLowerC">
135 <term>-c<indexterm id="IndexMinusLowerC"><primary>-c</primary></indexterm>, --format=schar<indexterm id="IndexMinusFormatSchar"><primary>--format=schar</primary></indexterm></term>
136 <listitem>
137 <para>
138 Use 8-bit signed character audio samples.
139 </para>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="FlagsMinusCsdLineNums">
144 <term>--csd-line-nums=NUM<indexterm id="IndexMinusCsdLineNums"><primary>--csd-line-nums</primary></indexterm></term>
145 <listitem>
146 <para>
147 Determines how line numbers are counted and displayed for error messages when processing a Csound Unified Document file (.csd). This flag has no effect if separate orchestra and score files are used. (Csound 5.08 and later).
148 <itemizedlist>
149 <listitem><para>0 = line numbers are relative to the beginning of the orchestra or score sections of the CSD</para></listitem>
150 <listitem><para>1 = line numbers are relative to the beginning of the CSD file. This is the default as of Csound 5.08.</para></listitem>
151 </itemizedlist>
152 </para>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="FlagsMinusUpperD">
157 <term>-D<indexterm id="IndexMinusUpperD"><primary>-D</primary></indexterm>, --defer-gen1<indexterm id="IndexMinusDefergen1"><primary>--defer-gen1</primary></indexterm></term>
158 <listitem>
159 <para>
160 Defer GEN01 soundfile loads until performance time.
161 </para>
162 </listitem>
163 </varlistentry>
164 <varlistentry id="FlagsMinusLowerD">
165 <term>-d<indexterm id="IndexMinusLowerD"><primary>-d</primary></indexterm>, --nodisplays<indexterm id="IndexMinusNodisplays"><primary>--nodisplays</primary></indexterm></term>
166 <listitem>
167 <para>
168 Suppress all displays. See <link
169 linkend="FlagsCatMinusUpperO"><citetitle>-O</citetitle></link>
170 if you want to save the log to a file. <note>This option
171 only works from the command line and not from .csound6rc or
172 a CsOptions section of a csd file. It needs to be acted
173 upon before sound proper starts. It is ignored in .csound6rc
174 and CsOptions.</note>
175 </para>
176 </listitem>
177 </varlistentry>
178
179 <varlistentry id="FlagsDaemon">
180 <term>--daemon<indexterm id="IndexDaemon"><primary>--daemon</primary></indexterm></term>
181 <listitem>
182 <para>
183 Run in daemon mode: do not exit if CSD/orchestra is not given, is empty or does not compile.
184 </para>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="FlagsMinusMinusDevices">
189 <term>--devices[=x]<indexterm id="IndexMinusMinusDevices"><primary>--devices</primary></indexterm></term>
190 <listitem>
191 <para>
192 list audio devices (x=out, output devices only; x=in,
193 input; else input and output) and exit.
194 </para>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="FlagsMinusDisplays">
199 <term>--displays<indexterm id="IndexMinusDisplays"><primary>--displays</primary></indexterm></term>
200 <listitem>
201 <para>
202 Enables displays, reverting the effect of any previous -d flag.
203 </para>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="FlagsMinusDefaultPaths">
208 <term>--default-paths<indexterm id="IndexMinusDefaultPaths"><primary>--no-default-paths</primary></indexterm></term>
209 <listitem>
210 <para>
211 Reenables adding of directory of CSD/ORC/SCO to search paths,
212 if it has been disabled by a previous <link linkend="FlagsMinusNoDefaultPaths"><citetitle>--no-default-paths</citetitle></link> (e.g. in <link linkend="CommandUnifileParFile"><citetitle>.csound6rc</citetitle></link>).
213 </para>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="FlagsMinusEnvEquals">
218 <term>--env:NAME=VALUE<indexterm id="IndexMinusEnvEquals"><primary>--env:NAME=VALUE</primary></indexterm></term>
219 <listitem>
220 <para>
221 Set environment variable NAME to VALUE. Note: not all
222 environment variables can be set this way, because some are
223 read before parsing the command line. INCDIR, SADIR, <link linkend="CommandEnvironment"><citetitle>SFDIR</citetitle></link>,
224 and <link linkend="CommandEnvironment"><citetitle>SSDIR</citetitle></link> are known to work.
225 </para>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="FlagsMinusEnvPlusEquals">
230 <term>--env:NAME+=VALUE<indexterm id="IndexMinusEnvPlusEquals"><primary>--env:NAME+=VALUE</primary></indexterm></term>
231 <listitem>
232 <para>
233 Append VALUE to ';' separated list of search paths in
234 environment variable NAME (should be INCDIR, SADIR, <link linkend="CommandEnvironment"><citetitle>SFDIR</citetitle></link>,
235 or <link linkend="CommandEnvironment"><citetitle>SSDIR</citetitle></link>). If a file is found in multiple directories, the
236 last will be used.
237 </para>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="FlagsMinusExpressionOpt">
242 <term>--expression-opt<indexterm id="IndexMinusExpressionOpt"><primary>--expression-opt</primary></indexterm></term>
243 <listitem>
244 <para>
245 <emphasis>Note that this option has no affect in
246 csound6.</emphasis>
247
248 <emphasis>In Csound 5 only.</emphasis>
249 Turns on some optimizations in expressions:
250 <itemizedlist>
251 <listitem><para>Redundant assignment operations are eliminated whenever
252 possible. This means that for example this line
253 a1 = a2 + a3
254 will compile as
255 a1 Add a2, a3
256 instead of
257 #a0 Add a2, a3
258 a1 = #a0
259 saving a temporary variable and an opcode call. Less opcode
260 calls result in reduced CPU usage (an average orchestra may
261 compile about 10% faster with --expression-opt, but it
262 depends largely on how many expressions are used, what the
263 control rate is (see also below), etc.; thus, the difference
264 may be less, but also much more).</para></listitem>
265
266 <listitem><para>number of a- and k-rate temporary variables is significantly
267 reduced. This expression</para>
268 <programlisting>
269 (a1 + a2 + a3 + a4)</programlisting>
270
271 <para>will compile as</para>
272
273 <programlisting>
274 #a0 Add a1, a2
275 #a0 Add #a0, a3
276 #a0 Add #a0, a4 ; (the result is in #a0)</programlisting>
277
278 <para>instead of</para>
279
280 <programlisting>
281 #a0 Add a1, a2
282 #a1 Add #a0, a3
283 #a2 Add #a1, a4 ; (the result is in #a2)</programlisting>
284
285 <para>The advantages of less temporary variables are:</para>
286
287 <itemizedlist>
288 <listitem><simpara>less cache memory is used, which may improve performance
289 of orchestras with many a-rate expressions and a low
290 control rate (e.g. ksmps = 100)</simpara></listitem>
291 <listitem><simpara>large orchestras may load faster due to less different
292 identifier names</simpara></listitem>
293 <listitem>
294 <simpara>index overflow errors (i.e. when messages like this
295 Case2: indx=-56004 (ffff253c); (short)indx = 9532 (253c)
296 are printed and odd behavior or a Csound crash occurs) may
297 be fixed, because such errors are triggered by too many
298 different (especially a-rate) variable names in a single
299 instrument.</simpara>
300 </listitem>
301
302 </itemizedlist>
303
304 <para>Note that this optimization (due to technical reasons) is not
305 performed on i-rate temporary variables.</para>
306 </listitem>
307
308 </itemizedlist>
309
310 <warning>
311 <title>Warning</title>
312 <para>
313 When --expression-opt is turned on, it is not allowed to use the i()
314 function with an expression argument, and relying on the value of
315 k-rate expressions at i-time is unsafe.
316 </para>
317 </warning>
318
319 </para>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="FlagsMinusUpperF">
324 <term>-F FILE<indexterm id="IndexMinusUpperF"><primary>-F</primary></indexterm>, --midifile=FILE<indexterm id="IndexMinusMidifile"><primary>--midifile</primary></indexterm></term>
325 <listitem>
326 <para>
327 Read MIDI events from MIDI file <emphasis>FILE</emphasis>.
328 The file should have only one track in Csound versions 4.xx and
329 earlier; this limitation is removed in Csound 5.00.
330 </para>
331 </listitem>
332 </varlistentry>
333
334 <varlistentry id="FlagsMinusLowerF">
335 <term>-f<indexterm id="IndexMinusLowerF"><primary>-f</primary></indexterm>, --format=float<indexterm id="IndexMinusFormatFloat"><primary>--format=float</primary></indexterm></term>
336 <listitem>
337 <para>
338 Use single-format float audio samples (not playable on some systems, but can be read by <link linkend="FlagsMinusLowerI"><citetitle>-i</citetitle></link>, <link linkend="soundin"><citetitle>soundin</citetitle></link> and <link linkend="GEN01"><citetitle>GEN01</citetitle></link>
339 </para>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="FlagsMinusUpperG">
344 <term>-G<indexterm id="IndexMinusUpperG"><primary>-G</primary></indexterm>, --postscriptdisplay<indexterm id="IndexMinusPostscriptdisplay"><primary>--postscriptdisplay</primary></indexterm></term>
345 <listitem>
346 <para>
347 Suppress graphics, use PostScript displays instead.
348 </para>
349 </listitem>
350 </varlistentry>
351
352 <varlistentry id="FlagsMinusLowerG">
353 <term>-g<indexterm id="IndexMinusLowerG"><primary>-g</primary></indexterm>, --asciidisplay<indexterm id="IndexMinusAsciidisplay"><primary>--asciidisplay</primary></indexterm></term>
354 <listitem>
355 <para>
356 Suppress graphics, use ASCII displays instead.
357 </para>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="FlagsMinusMinusgetsr">
362 <term>--get-system-sr<indexterm id="IndexMinusMinusgetsr"><primary>--get-system-sr</primary></indexterm></term>
363 <listitem>
364 <para>
365 prints system sr and exits, requires previous -o dac.
366 If the audio does not support this request then -1 is reported.
367 </para>
368 </listitem>
369 </varlistentry>
370
371 <varlistentry id="FlagsMinusMinussetsr">
372 <term>--set-system-sr<indexterm id="IndexMinusMinussetsr"><primary>--get-system-sr</primary></indexterm></term>
373 <listitem>
374 <para>
375 sets sr to the system sr, requires previous -o dac.
376 If the audio does not support this request then -1 is reported.
377 </para>
378 </listitem>
379 </varlistentry>
380
381 <varlistentry id="FlagsMinusUpperH">
382 <term>-H#<indexterm id="IndexMinusUpperH"><primary>-H</primary></indexterm>, --heartbeat=NUM<indexterm id="IndexMinusHeartbeat"><primary>--heartbeat</primary></indexterm></term>
383 <listitem>
384 <para>
385 Print a heartbeat after each soundfile buffer write:
386 <itemizedlist>
387 <listitem><para>no NUM, a rotating bar.</para></listitem>
388 <listitem><para>NUM = 1, a rotating bar.</para></listitem>
389 <listitem><para>NUM = 2, a dot (.)</para></listitem>
390 <listitem><para>NUM = 3, filesize in seconds.</para></listitem>
391 <listitem><para>NUM = 4, sound a bell.</para></listitem>
392 </itemizedlist>
393 </para>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="FlagsMinusLowerH">
398 <term>-h<indexterm id="IndexMinusLowerH"><primary>-h</primary></indexterm>, --noheader<indexterm id="IndexMinusNoheader"><primary>--noheader</primary></indexterm></term>
399 <listitem>
400 <para>
401 No header on output soundfile.
402 Don't write a file header, just binary samples.
403 </para>
404 </listitem>
405 </varlistentry>
406
407 <varlistentry id="FlagsMinusHelp">
408 <term>--help<indexterm id="IndexMinusHelp"><primary>--help</primary></indexterm></term>
409 <listitem>
410 <para>
411 Display on-line help message.
412 </para>
413 </listitem>
414 </varlistentry>
415
416 <varlistentry id="FlagsMinusUpperI">
417 <term>-I<indexterm id="IndexMinusUpperI"><primary>-I</primary></indexterm>, --i-only<indexterm id="IndexMinusIonly"><primary>--i-only</primary></indexterm></term>
418 <listitem>
419 <para>
420 <emphasis>i-time only.</emphasis> Allocate and initialize all instruments as per the score, but skip all p-time processing (no k-signals or a-signals, and thus no amplitudes and no sound). Provides a fast validity check of the score pfields and orchestra i-variables. This option is exclusive of the --syntax-check-only flag.
421 </para>
422 </listitem>
423 </varlistentry>
424
425 <varlistentry id="FlagsMinusLowerI">
426 <term>-i FILE<indexterm id="IndexMinusLowerI"><primary>-i</primary></indexterm>, --input=FILE<indexterm id="IndexMinusInput"><primary>--input</primary></indexterm></term>
427 <listitem>
428 <para>
429 Input soundfile name. If not a full pathname, the file will be sought first in the current directory, then in that given by the environment variable <link linkend="CommandEnvironment"><citetitle>SSDIR</citetitle></link> (if defined), then by <link linkend="CommandEnvironment"><citetitle>SFDIR</citetitle></link>. The name <emphasis>stdin</emphasis> will cause audio to be read from standard input.
430 </para>
431 <para>
432 The name <emphasis>devaudio</emphasis> or <emphasis>adc</emphasis> will request sound from the host audio input device. It is possible to select a device number by appending an integer value in the range 0 to 1023, or a device name separated by a : character (e.g. -iadc3, -iadc:hw:1,1). It depends on the host audio interface whether a device number or a name should be used. In the first case, an out of range number usually results in an error and listing the valid device numbers.
433 </para>
434 <para>
435 The audio coming in using <emphasis>-i</emphasis> can be received using opcodes like <link linkend="inch"><citetitle>inch</citetitle></link>.
436 </para>
437 </listitem>
438 </varlistentry>
439
440 <varlistentry id="FlagsMinusPlusIdArtist">
441 <term>-+id_artist=string<indexterm id="IndexMinusPlusIdArtist"><primary>-+id_artist</primary></indexterm></term>
442 <listitem>
443 <para>
444 (max. length = 200 characters) Artist tag in output soundfile (no spaces)
445 </para>
446 </listitem>
447 </varlistentry>
448
449 <varlistentry id="FlagsMinusPlusIdComment">
450 <term>-+id_comment=string<indexterm id="IndexMinusPlusIdComment"><primary>-+id_comment</primary></indexterm></term>
451 <listitem>
452 <para>
453 (max. length = 200 characters) Comment tag in output soundfile (no spaces)
454 </para>
455 </listitem>
456 </varlistentry>
457
458 <varlistentry id="FlagsMinusPlusIdCopyright">
459 <term>-+id_copyright=string<indexterm id="IndexMinusPlusIdCopyright"><primary>-+id_copyright</primary></indexterm></term>
460 <listitem>
461 <para>
462 (max. length = 200 characters) Copyright tag in output soundfile (no spaces)
463 </para>
464 </listitem>
465 </varlistentry>
466
467 <varlistentry id="FlagsMinusPlusIdSCopyright">
468 <term>-+id_scopyright=integer<indexterm id="IndexMinusPlusIdSCopyright"><primary>-+id_scopyright</primary></indexterm></term>
469 <listitem>
470 <para>
471 (Since version 6.05) Simple copyright/licence encoded as
472 an integer. Coding is:
473 <simplelist>
474 <member>0: "All rights reserved" (default)</member>
475 <member>1: "Creative Commons Attribution-NonCommercial-NoDerivatives (CC BY-NC-ND)"</member>
476 <member>2: "Creative Commons Attribution-NonCommercial-ShareAlike (CC BY-NC-SA)"</member>
477 <member>3: "Creative Commons Attribution-NonCommercial (CC BY-NC)"</member>
478 <member>4: "Creative Commons Attribution-NoDerivatives (CC BY-ND)"</member>
479 <member>5: "Creative Commons Attribution-ShareAlike (CC BY-SA)"</member>
480 <member>6: "Creative Commons Attribution-ShareAlike (CC BY)"</member>
481 <member>7: "Licenced under BSD"</member>
482 </simplelist>
483 </para>
484 </listitem>
485 </varlistentry>
486
487 <varlistentry id="FlagsMinusPlusIdDate">
488 <term>-+id_date=string<indexterm id="IndexMinusPlusIdDate"><primary>-+id_date</primary></indexterm></term>
489 <listitem>.
490 <para>
491 (max. length = 200 characters) Date tag in output soundfile (no spaces)
492 </para>
493 </listitem>
494 </varlistentry>
495
496 <varlistentry id="FlagsMinusPlusIdSoftware">
497 <term>-+id_software=string<indexterm id="IndexMinusPlusIdSoftware"><primary>-+id_software</primary></indexterm></term>
498 <listitem>
499 <para>
500 (max. length = 200 characters) Software tag in output soundfile (no spaces)
501 </para>
502 </listitem>
503 </varlistentry>
504
505 <varlistentry id="FlagsMinusPlusIdTitle">
506 <term>-+id_title=string<indexterm id="IndexMinusPlusIdTitle"><primary>-+id_title</primary></indexterm></term>
507 <listitem>
508 <para>
509 (max. length = 200 characters) Title tag in output soundfile (no spaces)
510 </para>
511 </listitem>
512 </varlistentry>
513
514 <varlistentry id="FlagsMinusPlusIgnoreCsopts">
515 <term>-+ignore_csopts=integer<indexterm id="IndexMinusPlusIgnoreCsopts"><primary>-+ignore_csopts=</primary></indexterm></term>
516 <listitem>
517 <para>
518 If set to 1, Csound will ignore all options specified in the csd file's CsOptions section. See <link linkend="CommandUnifile"><citetitle>Unified File Format for Orchestras and Scores</citetitle></link>.
519 </para>
520 </listitem>
521 </varlistentry>
522
523 <varlistentry id="FlagsMinusPlusInputStream">
524 <term>-+input_stream=string<indexterm id="IndexMinusPlusInputStream"><primary>-+input_stream</primary></indexterm></term>
525 <listitem>
526 <para>
527 Pulseaudio input stream name.
528 </para>
529 </listitem>
530 </varlistentry>
531
532 <varlistentry id="FlagsMinusUpperJ">
533 <term>-J<indexterm id="IndexMinusUpperJ"><primary>-J</primary></indexterm>, --ircam<indexterm id="IndexMinusIrcam"><primary>--ircam</primary></indexterm>, --format=ircam<indexterm id="IndexMinusFIrcam"><primary>--format=ircam</primary></indexterm></term>
534 <listitem>
535 <para>
536 Write an IRCAM format soundfile.
537 </para>
538 </listitem>
539 </varlistentry>
540
541 <varlistentry id="FlagsMinusLowerJ">
542 <term>-j NUM<indexterm id="IndexMinusLowerJ"><primary>-j NUM</primary></indexterm></term>
543 <listitem>
544 <para>
545 Make <emphasis>NUM</emphasis> processes available for
546 rendering. This is only advantageous if the number of
547 processors on the computer is the same or more that the number
548 of requested processes. It also may slow rendering
549 down if ksmps is too small.
550 </para>
551 </listitem>
552 </varlistentry>
553
554 <varlistentry id="FlagsMinusPlusJackClient">
555 <term>-+jack_client=[client_name]<indexterm id="IndexMinusPlusJackClient"><primary>-+jack_client</primary></indexterm></term>
556 <listitem>
557 <para>
558 The client name used by Csound, defaults to 'csound5'.
559 If multiple instances of Csound connect to the JACK server,
560 different client names need to be used to avoid name
561 conflicts. (Linux and Mac OS X only)
562 </para>
563 </listitem>
564 </varlistentry>
565 <varlistentry id="IndexMinusPlusJackPortname">
566 <term>-+jack_inportname=[input port name prefix], -+jack_outportname=[output port name prefix]
567 <indexterm id="IndexMinusPlusJackInportname"><primary>-+jack_inportname</primary></indexterm>
568 <indexterm id="IndexMinusPlusJackOutportname"><primary>-+jack_outportname</primary></indexterm></term>
569 <listitem>
570 <para>
571 Name prefix of Csound JACK input/output ports; the default is
572 'input' and 'output'. The actual port name is the channel number
573 appended to the name prefix. (Linux and Mac OS X only)
574 </para>
575 <para>
576 Example: with the above default settings, a stereo orchestra will
577 create these ports in full duplex operation:
578 <screen>
579 csound5:input1 (record left)
580 csound5:input2 (record right)
581 csound5:output1 (playback left)
582 csound5:output2 (playback right)</screen>
583 </para>
584 </listitem>
585 </varlistentry>
586
587 <varlistentry id="FlagsMinusUpperK">
588 <term>-K<indexterm id="IndexMinusUpperK"><primary>-K</primary></indexterm>, --nopeaks<indexterm id="IndexMinusNopeaks"><primary>--nopeaks</primary></indexterm></term>
589 <listitem>
590 <para>
591 Do not generate any PEAK chunks.
592 </para>
593 </listitem>
594 </varlistentry>
595
596 <varlistentry id="FlagsMinusLowerK">
597 <term>-k NUM<indexterm id="IndexMinusLowerK"><primary>-k</primary></indexterm>, --control-rate=NUM<indexterm id="IndexMinusControlrate"><primary>--control-rate</primary></indexterm></term>
598 <listitem>
599 <para>
600 Override the control rate (<link linkend="kr"><citetitle>KR</citetitle></link>) supplied by the orchestra.
601 </para>
602 </listitem>
603 </varlistentry>
604
605 <varlistentry id="FlagsMinusUpperL">
606 <term>-L DEVICE<indexterm id="IndexMinusUpperL"><primary>-L</primary></indexterm>, --score-in=DEVICE<indexterm id="IndexMinusScorein"><primary>--score-in</primary></indexterm></term>
607 <listitem>
608 <para>
609 Read line-oriented real-time score events from device <emphasis>DEVICE</emphasis>. The name <emphasis>stdin</emphasis> will permit score events to be typed at your terminal, or piped from another process. Each line-event is terminated by a carriage-return. Events are coded just like those in a <emphasis>standard numeric score</emphasis>, except that an event with p2=0 will be performed immediately, and an event with p2=T will be performed T seconds after arrival. Events can arrive at any time, and in any order. The score <emphasis>carry</emphasis> feature is legal here, as are held notes (p3 negative) and string arguments, but ramps and <emphasis>pp</emphasis> or <emphasis>np</emphasis> references are not.
610 </para>
611 <note>
612 <para>
613 The -L flag is only valid on *NIX systems which have pipes. It doesn't work on Windows.
614 </para>
615 </note>
616 </listitem>
617 </varlistentry>
618
619 <varlistentry id="FlagsMinusLowerL">
620 <term>-l<indexterm id="IndexMinusLowerL"><primary>-l</primary></indexterm>, --format=long<indexterm id="IndexMinusFormatLong"><primary>--format=long</primary></indexterm></term>
621 <listitem>
622 <para>
623 Use long integer audio samples.
624 </para>
625 </listitem>
626 </varlistentry>
627
628 <varlistentry id="FlagsMinusLimiter">
629 <term>--limiter<indexterm id="IndexMinusLimiter"><primary>--limiter=num</primary></indexterm>, <primary>--limiter</primary></term>
630 <listitem>
631 <para>
632 Use a limiter when outputing audio samples. The
633 limiting value is 0.5 or the value given in the range [0,1].
634 </para>
635 </listitem>
636 </varlistentry>
637
638 <varlistentry id="FlagsMinusUpperM">
639 <term>-M DEVICE<indexterm id="IndexMinusUpperM"><primary>-M</primary></indexterm>, --midi-device=DEVICE<indexterm id="IndexMinusMididevice"><primary>--midi-device</primary></indexterm></term>
640 <listitem>
641 <para>
642 Read MIDI events from device
643 <emphasis>DEVICE</emphasis>. If using ALSA MIDI
644 (-+rtmidi=alsa), devices are selected by name and not
645 number. So, you need to use an option like -M
646 hw:CARD,DEVICE where CARD and DEVICE are the card and
647 device numbers (e.g. -M hw:1,0). In the case of
648 CoreMIDI and MME, DEVICE should be a number, and if it
649 is out of range, an error occurs and the valid device
650 numbers are printed.
651 With PortMIDI, DEVICE is either a number for single port
652 input, 'a' for listening to all input ports, or 'm'
653 for mapping ports to MIDI channels above 16. In this
654 case, device 0 uses 1-16, device 1 uses 17-32, ...
655 device N uses (N+1)*channel.
656 The options 'a' and 'm' are also convenient when you
657 don't have devices as they will not generate an error.
658 </para>
659 </listitem>
660 </varlistentry>
661
662 <varlistentry id="FlagsMinusLowerM">
663 <term>-m NUM<indexterm id="IndexMinusLowerM"><primary>-m</primary></indexterm>, --messagelevel=NUM<indexterm id="IndexMinusMessagelevel"><primary>--messagelevel</primary></indexterm></term>
664 <listitem>
665 <para>
666 Message level for standard (terminal) output. Takes the <emphasis>sum</emphasis> of any of the following values:
667
668 <itemizedlist>
669 <listitem><para>1 = note amplitude messages</para></listitem>
670 <listitem><para>2 = samples out of range message</para></listitem>
671 <listitem><para>4 = warning messages</para></listitem>
672 <listitem><para>128 = print benchmark information</para></listitem>
673 <listitem><para>1024 = suppress deprecated messages</para></listitem>
674 </itemizedlist>
675
676 And exactly one of these to select note amplitude format:
677
678 <itemizedlist>
679 <listitem><para>0 = raw amplitudes, no colours</para></listitem>
680 <listitem><para>32 = dB, no colors</para></listitem>
681 <listitem><para>64 = dB, out of range highlighted with red</para></listitem>
682 <listitem><para>96 = dB, all colors</para></listitem>
683 <listitem><para>256 = raw, out of range highlighted with red</para></listitem>
684 <listitem><para>512 = raw, all colours</para></listitem>
685 </itemizedlist>
686
687
688 All messages can be suppressed by using message level 16.
689
690 </para><para>
691 The default is 135 (128+4+2+1), which means all messages, raw
692 amplitude values, and printing elapsed time at the end of
693 performance. The coloring of raw amplitudes was introduced
694 in version 5.04. The supression of deprecated messages
695 new in 6.14. Suppression of all messages is new in 6.17.
696
697 </para>
698
699
700
701 </listitem>
702 </varlistentry>
703
704 <varlistentry id="FlagsMinusLowerMA">
705 <term>--m-amps=NUM<indexterm id="IndexMinusLowerMA"></indexterm></term>
706 <listitem>
707 <para>
708 Message level for amplitudes on standard (terminal) output.
709 <itemizedlist>
710 <listitem><para>0 = no note amplitude messages</para></listitem>
711 <listitem><para>1 = note amplitude messages</para></listitem>
712 </itemizedlist>
713 </para>
714 </listitem>
715 </varlistentry>
716
717 <varlistentry id="FlagsMinusLowerMR">
718 <term>--m-range=NUM<indexterm id="IndexMinusLowerMR"></indexterm></term>
719 <listitem>
720 <para>
721 Message level for out of range messages on standard (terminal) output.
722 <itemizedlist>
723 <listitem><para>0 = no samples out of range message</para></listitem>
724 <listitem><para>1 = samples out of range message</para></listitem>
725 </itemizedlist>
726 </para>
727 </listitem>
728 </varlistentry>
729
730 <varlistentry id="FlagsMinusLowerMW">
731 <term>--m-warnings=NUM<indexterm id="IndexMinusLowerMW"></indexterm></term>
732 <listitem>
733 <para>
734 Message level for warnings on standard (terminal) output.
735 <itemizedlist>
736 <listitem><para>0 = no warning messages</para></listitem>
737 <listitem><para>1 = warning messages</para></listitem>
738 </itemizedlist>
739 </para>
740 </listitem>
741 </varlistentry>
742
743 <varlistentry id="FlagsMinusLowerMD">
744 <term>--m-dB=NUM<indexterm id="IndexMinusLowerMD"></indexterm></term>
745 <listitem>
746 <para>
747 Message level for amplitude format on standard (terminal) output.
748 <itemizedlist>
749 <listitem><para>0 = absolute amplitude messages</para></listitem>
750 <listitem><para>1 = dB amplitude messages</para></listitem>
751 </itemizedlist>
752 </para>
753 </listitem>
754 </varlistentry>
755
756 <varlistentry id="FlagsMinusLowerMC">
757 <term>--m-colours=NUM<indexterm id="IndexMinusLowerMC"></indexterm></term>
758 <listitem>
759 <para>
760 Message level for amplitude format on standard (terminal) output.
761 <itemizedlist>
762 <listitem><para>0 = no colouring of amplitude messages</para></listitem>
763 <listitem><para>1 = colouring of amplitude messages</para></listitem>
764 </itemizedlist>
765 </para>
766 </listitem>
767 </varlistentry>
768
769 <varlistentry id="FlagsMinusLowerMB">
770 <term>--m-benchmarks=NUM<indexterm id="IndexMinusLowerMB"></indexterm></term>
771 <listitem>
772 <para>
773 Message level for benchmark information on standard (terminal) output.
774 <itemizedlist>
775 <listitem><para>0 = no benchnark numbers</para></listitem>
776 <listitem><para>1 = print benchnark numbers</para></listitem>
777 </itemizedlist>
778 </para>
779 </listitem>
780 </varlistentry>
781
782 <varlistentry id="FlagsMinusPlusMaxStrLen">
783 <term>-+max_str_len=integer<indexterm id="IndexMinusPlusMaxStrLen"><primary>-+max_str_len</primary></indexterm></term>
784 <listitem>
785 <para>
786 (min: 10, max: 10000) Maximum length of string variables + 1;
787 defaults to 256 allowing a length of 255 characters. The length of
788 string constants is not limited by this parameter.
789 </para>
790 </listitem>
791 </varlistentry>
792
793 <varlistentry id="FlagsMinusMinusMidiDevices">
794 <term>--midi-devices[=x]<indexterm id="IndexMinusMinusMidiDevices"><primary>--midi-devices</primary></indexterm></term>
795 <listitem>
796 <para>
797 list midi devices (x=out, output devices only; x=in,
798 input; else input and output) and exit.
799 </para>
800 </listitem>
801 </varlistentry>
802
803 <varlistentry id="FlagsMidiKey">
804 <term>--midi-key=N<indexterm id="IndexMidiKey"><primary>--midi-key=N</primary></indexterm></term>
805 <listitem>
806 <para>
807 Route MIDI note on message key number to pfield N as
808 MIDI value [0-127].
809 </para>
810 </listitem>
811 </varlistentry>
812
813 <varlistentry id="FlagsMidiKeyCps">
814 <term>--midi-key-cps=N<indexterm id="IndexMidiKeyCps"><primary>--midi-key-cps=N</primary></indexterm></term>
815 <listitem>
816 <para>
817 Route MIDI note on message key number to pfield N
818 as cycles per second.
819 </para>
820 </listitem>
821 </varlistentry>
822
823 <varlistentry id="FlagsMidiKeyOct">
824 <term>--midi-key-oct=N<indexterm id="IndexMidiKeyOct"><primary>--midi-key-oct=N</primary></indexterm></term>
825 <listitem>
826 <para>
827 Route MIDI note on message key number to pfield
828 N as linear octave.
829 </para>
830 </listitem>
831 </varlistentry>
832
833 <varlistentry id="FlagsMidiKeyPch">
834 <term>--midi-key-pch=N<indexterm id="IndexMidiKeyPch"><primary>--midi-key-pch=N</primary></indexterm></term>
835 <listitem>
836 <para>
837 Route MIDI note on message key number to
838 pfield N as oct.pch (pitch class).
839 </para>
840 </listitem>
841 </varlistentry>
842
843 <varlistentry id="FlagsMidiVelocity">
844 <term>--midi-velocity=N<indexterm id="IndexMidiVelocity"><primary>--midi-velocity=N</primary></indexterm></term>
845 <listitem>
846 <para>
847 Route MIDI note on message velocity number to pfield
848 N as MIDI value [0-127].
849 </para>
850 </listitem>
851 </varlistentry>
852
853 <varlistentry id="FlagsMidiKeyAmp">
854 <term>--midi-velocity-amp=N<indexterm id="IndexMidiKeyAmp"><primary>--midi-velocity-amp=N</primary></indexterm></term>
855 <listitem>
856 <para>
857 Route MIDI note on message velocity number to pfield
858 N as amplitude [0-0dbFS].
859 </para>
860 </listitem>
861 </varlistentry>
862
863 <varlistentry id="FlagsMinusMidiOutFile">
864 <term>--midioutfile=FILENAME<indexterm id="IndexMinusMidiOutFile"><primary>--midioutfile</primary></indexterm></term>
865 <listitem>
866 <para>
867 Save MIDI output to a file (Csound 5.00 and later only).
868 </para>
869 </listitem>
870 </varlistentry>
871
872 <varlistentry id="FlagsMinusPlusMsgColor">
873 <term>-+msg_color=boolean<indexterm id="IndexMinusPlusMsgColor"><primary>-+msg_color</primary></indexterm></term>
874 <listitem>
875 <para>
876 Enable message attributes (colors etc.); might need to be disabled on some terminals which print strange characters instead of modifying text attributes. default: true.
877 </para>
878 </listitem>
879 </varlistentry>
880
881 <varlistentry id="FlagsMinusPlusMuteTracks">
882 <term>-+mute_tracks=string<indexterm id="IndexMinusPlusMuteTracks"><primary>-+mute_tracks</primary></indexterm></term>
883 <listitem>
884 <para>
885 (max. length = 255 characters) Ignore events (other than
886 tempo changes) in MIDI file tracks defined by pattern (for
887 example, -+mute_tracks=00101 will mute the third and fifth
888 tracks).
889 </para>
890 </listitem>
891 </varlistentry>
892
893 <varlistentry id="FlagsMinusUpperN">
894 <term>-N<indexterm id="IndexMinusUpperN"><primary>-N</primary></indexterm>, --notify<indexterm id="IndexMinusNotify"><primary>--notify</primary></indexterm></term>
895 <listitem>
896 <para>
897 Notify (ring the bell) when score or MIDI track is done.
898 </para>
899 </listitem>
900 </varlistentry>
901
902 <varlistentry id="FlagsMinusLowerN">
903 <term>-n<indexterm id="IndexMinusLowerN"><primary>-n</primary></indexterm>, --nosound<indexterm id="IndexMinusNosound"><primary>--nosound</primary></indexterm></term>
904 <listitem>
905 <para>
906 No sound. Do all processing, but bypass writing of sound to disk. This flag does not change the execution in any other way.
907 </para>
908 </listitem>
909 </varlistentry>
910
911 <varlistentry id="FlagsMinusNumthread">
912 <term>--num-threads=NUM<indexterm id="IndexMinusNumthread"><primary>--num-thread=NUM</primary></indexterm></term>
913 <listitem>
914 <para>
915 Make <emphasis>NUM</emphasis> processes available for
916 rendering. This is only advantageous if the number of
917 processors on the computer is more that the number
918 of requested processes. It also may slow rendering
919 down if ksmps is too small.
920 </para>
921 </listitem>
922 </varlistentry>
923
924
925 <varlistentry id="FlagsMinusNoDefaultPaths">
926 <term>--no-default-paths<indexterm id="IndexMinusNoDefaultPaths"><primary>--no-default-paths</primary></indexterm></term>
927 <listitem>
928 <para>
929 Disables adding of directory of CSD/ORC/SCO to search paths.
930 </para>
931 </listitem>
932 </varlistentry>
933
934 <varlistentry id="FlagsMinusNoExpressionOpt">
935 <term>--no-expression-opt<indexterm id="IndexMinusNoExpressionOpt"><primary>--no-expression-opt</primary></indexterm></term>
936 <listitem>
937 <para>
938 Disables expression optimization.
939 </para>
940 </listitem>
941 </varlistentry>
942
943 <varlistentry id="FlagsMinusUpperO">
944 <term>-O FILE<indexterm id="IndexMinusUpperO"><primary>-O</primary></indexterm>, --logfile=FILE<indexterm id="IndexMinusLogfile"><primary>--logfile</primary></indexterm></term>
945 <listitem>
946 <para>
947 Log output to file <emphasis>FILE</emphasis>. If
948 <emphasis>FILE</emphasis> is null (i.e. <emphasis>-O
949 null</emphasis> or <emphasis>--logfile=null</emphasis>)
950 all printing of messages to the console is disabled.
951 <note>This option only works from the command line and
952 not from .csound6rc or a CsOptions section of a csd
953 file. It needs to be acted upon before sound proper
954 starts. It is ignored in .csound6rc and
955 CsOptions.</note>
956 </para>
957 </listitem>
958 </varlistentry>
959
960 <varlistentry id="FlagsMinusLowerO">
961 <term>-o FILE<indexterm id="IndexMinusLowerO"><primary>-o</primary></indexterm>, --output=FILE<indexterm id="IndexMinusOutput"><primary>--output</primary></indexterm></term>
962 <listitem>
963 <para>
964 Output soundfile name. If not a full pathname, the soundfile will be placed in the directory given by the environment variable <link linkend="CommandEnvironment"><citetitle>SFDIR</citetitle></link> (if defined), else in the current directory. The name <emphasis>stdout</emphasis> will cause audio to be written to standard output, while <emphasis>null</emphasis> results in no sound output similarly to the -n flag. If no name is given, the default name will be <emphasis>test</emphasis>.
965 </para>
966 <para>
967 The name <emphasis>devaudio</emphasis> or <emphasis>dac</emphasis> (you can use <emphasis>-odac</emphasis> or <emphasis>-o dac</emphasis>) will request writing sound to the host audio output device. It is possible to select a device number by appending an integer value in the range 0 to 1023, or a device name separated by a : character (e.g. -odac3, -odac:hw:1,1). It depends on the host audio interface whether a device number or a name should be used. In the first case, an out of range number usually results in an error and listing the valid device numbers.
968 </para>
969 </listitem>
970 </varlistentry>
971
972 <varlistentry id="FlagsMinusMinusOgg">
973 <term>--ogg<indexterm id="IndexMinusMinusOgg"><primary>--ogg</primary></indexterm></term>
974 <listitem>
975 <para>
976 Set output file format to ogg. (csound 5.18 and later)
977 </para>
978 </listitem>
979 </varlistentry>
980
981 <varlistentry id="FlagsMinusOmacro">
982 <term>--omacro:XXX=YYY<indexterm id="IndexMinusOmacro"><primary>--omacro</primary></indexterm></term>
983 <listitem>
984 <para>
985 Set orchestra macro XXX to value YYY
986 </para>
987 </listitem>
988 </varlistentry>
989
990 <varlistentry id="FlagsMinusOpcodeLib">
991 <term>--opcode-lib=LIBNAME<indexterm id="IndexMinusOpcodeLib"><primary>--opcode-lib</primary></indexterm></term>
992 <listitem>
993 <para>
994 Load plugin library <emphasis>LIBNAME</emphasis>.
995 </para>
996 </listitem>
997 </varlistentry>
998
999 <varlistentry id="FlagMinuMinusOrc">
1000 <term>--orc orcname<indexterm id="IndexMinusMinusOrc"><primary>--orc</primary></indexterm></term>
1001 <listitem>
1002 <para>
1003 Set the argument as the orchestra file. Used when no
1004 score is required. (Csound 5.18 and later).
1005 </para>
1006 </listitem>
1007 </varlistentry>
1008
1009 <varlistentry id="FlagsMinusMinusKsmps">
1010 <term>--ksmps=N<indexterm id="IndexMinusMinusKsmps"><primary>--ksmps</primary></indexterm></term>
1011 <listitem>
1012 <para>
1013 Set ksmps override to N (6.05 and later).
1014 </para>
1015 </listitem>
1016 </varlistentry>
1017
1018
1019 <varlistentry id="FlagsMinusPlusOutputStream">
1020 <term>-+output_stream=string<indexterm id="IndexMinusPlusOutputStream"><primary>-+output_stream</primary></indexterm></term>
1021 <listitem>
1022 <para>
1023 Pulseaudio output stream name.
1024 </para>
1025 </listitem>
1026 </varlistentry>
1027
1028 <varlistentry id="FlagsMinusPort">
1029 <term>--port=N<indexterm
1030 id="IndexMinusPort"><primary>--port</primary></indexterm></term>
1031 <listitem>
1032 <para>
1033 Set UDP port on which to listen for commands and instruments/orchestra code
1034 (implies --daemon). See <link
1035 linkend="udpserver"><citetitle>UDP Server</citetitle></link>.
1036 </para>
1037 </listitem>
1038 </varlistentry>
1039
1040 <varlistentry id="FlagsMinusMinusPrintVersion">
1041 <term>--print_version<indexterm
1042 id="IndexMinusPrintVersion"><primary>--print_version</primary></indexterm></term>
1043 <listitem>
1044 <para>
1045 Prints the version information at the end of the rendering.
1046 </para>
1047 </listitem>
1048 </varlistentry>
1049
1050
1051 <varlistentry id="FlagsMinusUdpEcho">
1052 <term>--udp-echo<indexterm
1053 id="IndexMinusUdpEcho"><primary>--udp-echo</primary></indexterm></term>
1054 <listitem>
1055 <para>
1056 Switches on printing of UDP commands on the terminal. Any
1057 messages received by the UDP server are echoed (whether
1058 they are valid commands or not).
1059 </para>
1060 </listitem>
1061 </varlistentry>
1062
1063 <varlistentry id="FlagsMinusUdpConsole">
1064 <term>--udp-console=address:port<indexterm
1065 id="IndexFlagsMinusUdpConsole"><primary>--udp-console</primary></indexterm></term>
1066 <listitem>
1067 <para>
1068 Redirects the console messages to a remote address:port
1069 via UDP.
1070 </para>
1071 </listitem>
1072 </varlistentry>
1073
1074 <varlistentry id="FlagsMinusUdpMirrorConsole">
1075 <term>--udp-mirror-console=address:port<indexterm
1076 id="IndexFlagsMinusUdpMirrorConsole"><primary>--udp-mirror-console</primary></indexterm></term>
1077 <listitem>
1078 <para>
1079 Mirrors the console messages to a remote address:port
1080 via UDP.
1081 </para>
1082 </listitem>
1083 </varlistentry>
1084
1085 <varlistentry id="FlagsMinusUpperQ">
1086 <term>-Q DEVICE<indexterm
1087 id="IndexMinusUpperQ"><primary>-Q</primary></indexterm></term>
1088 <listitem>
1089 <para>
1090 Enables MIDI OUT operations to device id
1091 <emphasis>DEVICE</emphasis>. This flag allows parallel
1092 MIDI OUT and DAC performance. Unfortunately the real-time
1093 timing implemented in Csound is completely managed by DAC
1094 buffer sample flow. So MIDI OUT operations can present
1095 some time irregularities. These irregularities can be
1096 reduced by using a lower value for the <link
1097 linkend="FlagsMinusLowerB"><citetitle>-b</citetitle></link>
1098 flag.
1099 </para>
1100 <para>
1101 If using ALSA MIDI (-+rtmidi=alsa), devices are selected
1102 by name and not number. So, you need to use an option
1103 like -Q hw:CARD,DEVICE where CARD and DEVICE are the
1104 card and device numbers (e.g. -Q hw:1,0). In the case of
1105 PortMIDI, CoreMIDI and MME, DEVICE should be a number, and if it
1106 is out of range, an error occurs and the valid device
1107 numbers are printed.
1108 </para>
1109 </listitem>
1110 </varlistentry>
1111
1112 <varlistentry id="FlagsMinusUpperR">
1113 <term>-R<indexterm id="IndexMinusUpperR"><primary>-R</primary></indexterm>, --rewrite<indexterm id="IndexMinusRewrite"><primary>--rewrite</primary></indexterm></term>
1114 <listitem>
1115 <para>
1116 Continually rewrite the header while writing the soundfile (WAV/AIFF).
1117 </para>
1118 </listitem>
1119 </varlistentry>
1120
1121 <varlistentry id="FlagsMinusLowerR">
1122 <term>-r NUM<indexterm id="IndexMinusLowerR"><primary>-r</primary></indexterm>, --sample-rate=NUM<indexterm id="IndexMinusSamplerate"><primary>--sample-rate</primary></indexterm></term>
1123 <listitem>
1124 <para>
1125 Override the sampling rate (<link linkend="sr"><citetitle>SR</citetitle></link>) supplied by the orchestra.
1126 </para>
1127 </listitem>
1128 </varlistentry>
1129
1130 <varlistentry id="FlagsMinusPlusRawControlerMode">
1131 <term>-+raw_controller_mode=boolean<indexterm id="IndexMinusRawControllerMode"><primary>-+raw_controller_mode</primary></indexterm></term>
1132 <listitem>
1133 <para>
1134 Disable special handling of MIDI controllers like sustain
1135 pedal, all notes off etc., allowing the use of all the 128
1136 controllers for any purpose. This will also set the initial value
1137 of all controllers to zero. Default: no.
1138 </para>
1139 </listitem>
1140 </varlistentry>
1141
1142 <varlistentry id="FlagsMinusRealtime">
1143 <term>--realtime<indexterm id="IndexMinusRealtime"><primary>--realtime</primary></indexterm></term>
1144 <listitem>
1145 <para>
1146 realtime priority mode is switched on which the following effects:
1147 <orderedlist>
1148 <listitem>
1149 <simpara>all opcode audio file reading/writing is handled asynchronously
1150 by a separate thread.</simpara>
1151 </listitem>
1152 <listitem>
1153 <simpara>all init-pass operations are also performed asynchronously.</simpara>
1154 </listitem>
1155 </orderedlist>
1156 </para>
1157 </listitem>
1158 </varlistentry>
1159
1160 <varlistentry id="FlagsMinusPlusRtaudio">
1161 <term>-+rtaudio=string<indexterm id="IndexMinusRtaudio"><primary>-+rtaudio</primary></indexterm></term>
1162 <listitem>
1163 <para>
1164 (max. length = 20 characters) Real time audio module name.
1165 The default is PortAudio. Also available, depending on platform and build options: Linux: alsa, jack; Windows: mme; Mac OS X: CoreAudio. In addition, null can be used on all platforms, to disable the use of any real time audio plugin.
1166 </para>
1167 </listitem>
1168 </varlistentry>
1169
1170 <varlistentry id="FlagsMinusPlusRtmidi">
1171 <term>-+rtmidi=string<indexterm id="IndexMinusRtmidi"><primary>-+rtmidi</primary></indexterm></term>
1172 <listitem>
1173 <para>
1174 (max. length = 20 characters) Real time MIDI module name.
1175 Defaults to PortMIDI (if present). Other options
1176 (depending on platform and build) are Linux: alsa;
1177 MacOS: cmidi; Windows: mme, winmm.
1178 In addition, null can be used on all platforms, to disable the use of any real time MIDI plugin.
1179 </para>
1180 <para>ALSA MIDI devices are selected by name and not number. So, you
1181 need to use an option like -M hw:CARD,DEVICE where CARD and
1182 DEVICE are the card and device numbers (e.g. -M
1183 hw:1,0). PortMIDI allows multiple port inputs with
1184 either -Ma or -Mm.
1185 </para>
1186 </listitem>
1187 </varlistentry>
1188
1189 <varlistentry id="FlagsMinusLowerS">
1190 <term>-s<indexterm id="IndexMinusLowerS"><primary>-s</primary></indexterm>, --format=short<indexterm id="IndexMinusFormatShort"><primary>--format=short</primary></indexterm></term>
1191 <listitem>
1192 <para>
1193 Use short integer audio samples.
1194 </para>
1195 </listitem>
1196 </varlistentry>
1197
1198 <varlistentry id="FlagsSampleAccurate">
1199 <term>--sample-accurate<indexterm id="IndexSampleAccurate"><primary>--sample-accurate</primary></indexterm></term>
1200 <listitem>
1201 <para>
1202 Start and stop instances of instruments at the nearest
1203 sample to the requested time. This is in contrast to
1204 traditional Csound which rounds the times to the nearest
1205 k-cycle. Note that this does not work with tied notes,
1206 nor does it change the Midi timing (as this is only
1207 affected by ksmps size (control rate).
1208 </para>
1209 </listitem>
1210 </varlistentry>
1211
1212 <varlistentry id="FlagsMinusSched">
1213 <term>--sched<indexterm id="IndexMinusSched"><primary>--sched</primary></indexterm></term>
1214 <listitem>
1215 <para>
1216 <emphasis>Linux only.</emphasis> Use real-time scheduling and lock memory. (Also requires <link linkend="FlagsMinusLowerD"><citetitle>-d</citetitle></link> and either <link linkend="FlagsMinusLowerO"><citetitle>-o dac</citetitle></link> or <link linkend="FlagsMinusLowerO"><citetitle>-o devaudio</citetitle></link>).
1217 See also --sched=N below.
1218 </para>
1219 </listitem>
1220 </varlistentry>
1221
1222 <varlistentry id="FlagsMinusSchedN">
1223 <term>--sched=N<indexterm id="IndexMinusSchedN"><primary>--sched=N</primary></indexterm></term>
1224 <listitem>
1225 <para>
1226 <emphasis>Linux only.</emphasis>
1227 Same as --sched, but allows specifying a priority value: if N
1228 is positive (in the range 1 to 99) the scheduling policy
1229 SCHED_RR will be used with a priority of N; otherwise,
1230 SCHED_OTHER is used with the nice level set to N.
1231 Can also be used in the format --sched=N,MAXCPU,TIME to enable the
1232 use of a "watchdog" thread that terminates Csound if the average CPU
1233 usage exceeds MAXCPU percents over a peroid of TIME seconds (new in
1234 Csound 5.00).
1235 </para>
1236 </listitem>
1237 </varlistentry>
1238
1239 <varlistentry id="FlagsMinusPlusServer">
1240 <term>-+server=string<indexterm id="IndexMinusPlusServer"><primary>-+server</primary></indexterm></term>
1241 <listitem>
1242 <para>
1243 Pulseaudio server name.
1244 </para>
1245 </listitem>
1246 </varlistentry>
1247
1248 <varlistentry id="FlagsSimpleScore">
1249 <term>--simple-sorted-score<indexterm id="IndexMinusSimplesortedscore"><primary>--keep-sorted-score</primary></indexterm></term>
1250 <listitem>
1251 <para>
1252 Retains the sorted score file score.srt in a simple readable
1253 format upon exit. (New in version 6.14).
1254 </para>
1255 </listitem>
1256 <listitem>
1257 <para>
1258 An alternative form is to follow immediately with an = and
1259 a file name , to select where to write the score.
1260 </para>
1261 </listitem>
1262 </varlistentry>
1263
1264 <varlistentry id="FlagsMinusMinusSinesize">
1265 <term>--sinesize=integer<indexterm id="IndexMinusMinusSinesize"><primary>--sinesize</primary></indexterm></term>
1266 <listitem>
1267 <para>
1268 Set size of internal sine wave (table -1). Should be a
1269 power of two, and defaults to 16384.
1270 </para>
1271 </listitem>
1272 </varlistentry>
1273
1274 <varlistentry id="FlagsMinusSmacro">
1275 <term>--smacro:XXX=YYY<indexterm id="IndexMinusSmacro"><primary>--smacro</primary></indexterm></term>
1276 <listitem>
1277 <para>
1278 Set score macro XXX to value YYY
1279 </para>
1280 </listitem>
1281 </varlistentry>
1282
1283 <varlistentry id="FlagsMinusStrset">
1284 <term>--strset<indexterm id="IndexMinusStrset"><primary>--strset</primary></indexterm></term>
1285 <listitem>
1286 <para>
1287 <emphasis>Csound 5.</emphasis>
1288 The --strset option allows setting strset string values from
1289 the command line, in the format '--strsetN=VALUE'. It is
1290 useful for passing parameters to the orchestra (e.g. file
1291 names).
1292 </para>
1293 </listitem>
1294 </varlistentry>
1295
1296 <varlistentry id="FlagsMinusSyntaxCheckOnly">
1297 <term>--syntax-check-only<indexterm id="IndexMinusSyntaxCheckOnly"><primary>--syntax-check-only</primary></indexterm></term>
1298 <listitem>
1299 <para>
1300 Causes Csound to exit immediately after the orchestra and score parsers finish checking the syntax of the input files and before the orchestra performs the score. This option is exclusive of the --i-only flag. (Csound 5.08 and later).
1301 </para>
1302 </listitem>
1303 </varlistentry>
1304
1305 <varlistentry id="FlagsMinusUpperT">
1306 <term>-T<indexterm id="IndexMinusUpperT"><primary>-T</primary></indexterm>, --terminate-on-midi<indexterm id="IndexMinusTerminateonmidi"><primary>--terminate-on-midi</primary></indexterm></term>
1307 <listitem>
1308 <para>
1309 Terminate the performance when the end of MIDI file is reached.
1310 </para>
1311 </listitem>
1312 </varlistentry>
1313
1314 <varlistentry id="FlagsMinusLowerT0">
1315 <term>-t0<indexterm id="IndexMinusLowerT0"><primary>-t0</primary></indexterm>, --keep-sorted-score<indexterm id="IndexMinusKeepsortedscore"><primary>--keep-sorted-score</primary></indexterm></term>
1316 <listitem>
1317 <para>
1318 Prevents Csound from deleting the sorted score file, score.srt, upon exit.
1319 </para>
1320 </listitem>
1321 </varlistentry>
1322
1323 <varlistentry id="FlagsMinusLowerT">
1324 <term>-t NUM<indexterm id="IndexMinusLowerT"><primary>-t</primary></indexterm>, --tempo=NUM<indexterm id="IndexMinusTempo"><primary>--tempo=NUM</primary></indexterm></term>
1325 <listitem>
1326 <para>
1327 Use the uninterpreted beats of <emphasis>score.srt</emphasis> for this performance, and set the initial tempo at <emphasis>NUM</emphasis> beats per minute. When this flag is set, the tempo of score performance is also controllable from within the orchestra. WARNING: this mode of operation is experimental and may be unreliable.
1328 </para>
1329 </listitem>
1330 </varlistentry>
1331
1332 <varlistentry id="FlagsMinusUpperU">
1333 <term>-U UTILITY<indexterm id="IndexMinusUpperU"><primary>-U</primary></indexterm>, --utility=UTILITY<indexterm id="IndexMinusUtility"><primary>--utility</primary></indexterm></term>
1334 <listitem>
1335 <para>
1336 Invoke the utility program <emphasis>UTILITY</emphasis>. Use any
1337 invalid name to list the available utilities.
1338 </para>
1339 </listitem>
1340 </varlistentry>
1341
1342 <varlistentry id="FlagsMinusLowerU">
1343 <term>-u<indexterm
1344 id="IndexMinusLowerU"><primary>-u</primary></indexterm>,
1345 --format=ulaw<indexterm
1346 id="IndexMinusFormatUlaw"><primary>--format=ulaw</primary></indexterm></term>
1347 <listitem>
1348 <para>
1349 Use u-law audio samples.
1350 </para>
1351 </listitem>
1352 </varlistentry>
1353
1354 <varlistentry id="FlagsMinusMinusVBR">
1355 <term>--vbr-quality=X<indexterm id="IndexMinusMinusVBR"><primary>--vbr-quality=X</primary></indexterm></term>
1356 <listitem>
1357 <para>
1358 Set variable bit-rate quality for output to ogg. (Csound 6.03 and later).
1359 </para>
1360 </listitem>
1361 </varlistentry>
1362
1363 <varlistentry id="FlagsMinusLowerV">
1364 <term>-v<indexterm id="IndexMinusLowerV"><primary>-v</primary></indexterm>, --verbose<indexterm id="IndexMinusVerbose"><primary>--verbose</primary></indexterm></term>
1365 <listitem>
1366 <para>
1367 Verbose translate and run. Prints details of orch translation and performance, enabling errors to be more clearly located.
1368 </para>
1369 </listitem>
1370 </varlistentry>
1371
1372 <varlistentry id="FlagsMinusVersion">
1373 <term>--version<indexterm id="IndexMinusVersion"><primary>--version</primary></indexterm></term>
1374 <listitem>
1375 <para>
1376 Exits after printing version information.
1377 </para>
1378 </listitem>
1379 </varlistentry>
1380
1381 <varlistentry id="FlagsMinusUpperW">
1382 <term>-W<indexterm id="IndexMinusUpperW"><primary>-W</primary></indexterm>, --wave<indexterm id="IndexMinusWave"><primary>--wave</primary></indexterm>, --format=wave<indexterm id="IndexMinusFWave"><primary>--format=wave</primary></indexterm></term>
1383 <listitem>
1384 <para>
1385 Write a WAV format soundfile.
1386 </para>
1387 </listitem>
1388 </varlistentry>
1389
1390 <varlistentry id="FlagsMinusLowerX">
1391 <term>-x FILE<indexterm id="IndexMinusLowerX"><primary>-x</primary></indexterm>, --extract-score=FILE<indexterm id="IndexMinusExtractscore"><primary>--extract-score</primary></indexterm></term>
1392 <listitem>
1393 <para>
1394 Extract a portion of the sorted score, score.srt, using the extract file <emphasis>FILE</emphasis> (see <link linkend="commandpreextract"><citetitle>Extract</citetitle></link>).
1395 </para>
1396 </listitem>
1397 </varlistentry>
1398
1399 <varlistentry id="FlagsMinusUpperZ">
1400 <term>-Z<indexterm id="IndexMinusUpperZ"><primary>-Z</primary></indexterm>, --dither<indexterm id="IndexMinusDither"><primary>--dither</primary></indexterm></term>
1401 <listitem>
1402 <para>
1403 Switch on dithering of audio conversion from internal
1404 floating point to 32, 16 and 8-bit formats. The default
1405 form of the dither is triangular.
1406 </para>
1407 </listitem>
1408 </varlistentry>
1409
1410 <varlistentry id="FlagsMinusUpperZd">
1411 <term>-Z<indexterm id="IndexMinusUpperZd"><primary>-Zd</primary></indexterm>, --dither--triangular<indexterm id="IndexMinusDitherTrangular"><primary>--dither--triangular</primary></indexterm>, --dither--uniform<indexterm id="IndexMinusDitherUniform"><primary>--dither--uniform</primary></indexterm></term>
1412 <listitem>
1413 <para>
1414 Switch on dithering of audio conversion from internal
1415 floating point to 32, 16 and 8-bit formats. In the case
1416 of -Z the next digit should be a 1 (for trangular) or a
1417 2 (for uniform). The exact interpretation depends on
1418 the output system.
1419 </para>
1420 </listitem>
1421 </varlistentry>
1422
1423 <varlistentry id="FlagsMinusLowerZ">
1424 <term>-z NUM<indexterm id="IndexMinusLowerZ"><primary>-z</primary></indexterm>, --list-opcodesNUM<indexterm id="IndexMinusListopcodes"><primary>--list-opcodesNUM</primary></indexterm></term>
1425 <listitem>
1426 <para>
1427 List opcodes in this version:
1428 <itemizedlist>
1429 <listitem><para>no NUM, just show names</para></listitem>
1430 <listitem><para>NUM = 0, just show names</para></listitem>
1431 <listitem><para>NUM = 1, show arguments to each opcode using the format &lt;opname&gt; &lt;outargs&gt; &lt;inargs&gt;</para></listitem>
1432 <listitem><para>NUM = 2, show names including
1433 deprecated ones</para></listitem>
1434 <listitem><para>NUM = 3, show arguments to each
1435 opcode, including deprecated ones, using the format &lt;opname&gt; &lt;outargs&gt; &lt;inargs&gt;</para></listitem>
1436 </itemizedlist>
1437 </para>
1438 </listitem>
1439 </varlistentry>
1440 </variablelist>
1441 </refsect1>
1442 </refentry>
1443 <!-- </section> -->