| 1 | <section id="CommandFlagsCategory"> |
| 2 | <title>Command-line Flags (by Category)</title> |
| 3 | |
| 4 | <para> |
| 5 | Listed below are the command line available in Csound5 organized by categories. Various platform implementations may not react the same way to different flags! |
| 6 | </para> |
| 7 | <para> |
| 8 | You can view the command line flags organized alphabetically in <link linkend="CommandFlags"><citetitle>Command-line Flags (Alphabetically)</citetitle></link>. |
| 9 | </para> |
| 10 | <para> |
| 11 | The format of a command is either: |
| 12 | <cmdsynopsis> |
| 13 | <command>csound</command> |
| 14 | <arg><option>flags</option></arg> |
| 15 | <arg>orchname</arg> |
| 16 | <arg>scorename</arg> |
| 17 | </cmdsynopsis> |
| 18 | |
| 19 | or |
| 20 | |
| 21 | <cmdsynopsis> |
| 22 | <command>csound</command> |
| 23 | <arg><option>flags</option></arg> |
| 24 | <arg>csdfilename</arg> |
| 25 | </cmdsynopsis> |
| 26 | </para> |
| 27 | |
| 28 | <para> |
| 29 | where the arguments are of 2 types: <emphasis>flags</emphasis> arguments (beginning with a |
| 30 | <quote>-</quote>,<quote>--</quote> or <quote>-+</quote>), and <emphasis>name</emphasis> |
| 31 | arguments (such as filenames). Certain flag arguments take a following name or numeric |
| 32 | argument. Flags that start with <quote>--</quote> and <quote>-+</quote> usually take an |
| 33 | argument themselves using <quote>=</quote>. |
| 34 | </para> |
| 35 | |
| 36 | <variablelist> |
| 37 | <title>Audio File Ouput</title> |
| 38 | <varlistentry id="FlagsCatMinus3"> |
| 39 | <term>-3<indexterm id="IndexCatMinus3"><primary>-3</primary></indexterm>, --format=24bit<indexterm id="IndexCatMinusFormat24bit"><primary>--format=24bit</primary></indexterm></term> |
| 40 | <listitem> |
| 41 | <para> |
| 42 | Use 24-bit audio samples. |
| 43 | </para> |
| 44 | </listitem> |
| 45 | </varlistentry> |
| 46 | |
| 47 | <varlistentry id="FlagsCatMinus8"> |
| 48 | <term>-8<indexterm id="IndexCatMinus8"><primary>-8</primary></indexterm>, --format=uchar<indexterm id="IndexCatMinusFormatUchar"><primary>--format=uchar</primary></indexterm></term> |
| 49 | <listitem> |
| 50 | <para> |
| 51 | Use 8-bit unsigned character audio samples. |
| 52 | </para> |
| 53 | </listitem> |
| 54 | </varlistentry> |
| 55 | |
| 56 | <varlistentry id="FlagsCatMinusUpperA"> |
| 57 | <term>-A<indexterm id="IndexCatMinusUpperA"><primary>-A</primary></indexterm>, --aiff<indexterm id="IndexCatMinusAiff"><primary>--aiff</primary></indexterm>, --format=aiff<indexterm id="IndexCatMinusFAiff"><primary>--format=aiff</primary></indexterm></term> |
| 58 | <listitem> |
| 59 | <para> |
| 60 | 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. |
| 61 | </para> |
| 62 | </listitem> |
| 63 | </varlistentry> |
| 64 | |
| 65 | <varlistentry id="FlagsCatMinusLowerA"> |
| 66 | <term>-a<indexterm id="IndexCatMinusLowerA"><primary>-a</primary></indexterm>, --format=alaw<indexterm id="IndexCatMinusFormatAlaw"><primary>--format=alaw</primary></indexterm></term> |
| 67 | <listitem> |
| 68 | <para> |
| 69 | Use a-law audio samples. |
| 70 | </para> |
| 71 | </listitem> |
| 72 | </varlistentry> |
| 73 | |
| 74 | <varlistentry id="FlagsCatMinusLowerC"> |
| 75 | <term>-c<indexterm id="IndexCatMinusLowerC"><primary>-c</primary></indexterm>, --format=schar<indexterm id="IndexCatMinusFormatSchar"><primary>--format=schar</primary></indexterm></term> |
| 76 | <listitem> |
| 77 | <para> |
| 78 | Use 8-bit signed character audio samples. |
| 79 | </para> |
| 80 | </listitem> |
| 81 | </varlistentry> |
| 82 | |
| 83 | <varlistentry id="FlagsCatMinusLowerF"> |
| 84 | <term>-f<indexterm id="IndexCatMinusLowerF"><primary>-f</primary></indexterm>, --format=float<indexterm id="IndexCatMinusFormatFloat"><primary>--format=float</primary></indexterm></term> |
| 85 | <listitem> |
| 86 | <para> |
| 87 | Use single-format float audio samples (not playable on some systems, but can be read by <link linkend="FlagsCatMinusLowerI"><citetitle>-i</citetitle></link>, <link linkend="soundin"><citetitle>soundin</citetitle></link> and <link linkend="GEN01"><citetitle>GEN01</citetitle></link> |
| 88 | </para> |
| 89 | </listitem> |
| 90 | </varlistentry> |
| 91 | |
| 92 | <varlistentry id="FlagsCatMinusFormat"> |
| 93 | <term>--format=<emphasis>type</emphasis><indexterm id="IndexCatMinusFormat"><primary>--format</primary></indexterm></term> |
| 94 | <listitem> |
| 95 | <para> |
| 96 | Set the audio file output format to one of the formats |
| 97 | available in libsndfile. At present the list is |
| 98 | aiff, au, avr, caf, flac, htk, ircam, mat4, mat5, nis, paf, pvf, |
| 99 | raw, sd2, sds, svx, voc, w64, wav, wavex and xi. |
| 100 | Can also be used as --format=type:format or --format=format:type |
| 101 | to set both the file type (wav, aiff, etc.) and sample format |
| 102 | (short, long, float, etc.) at the same time. |
| 103 | </para> |
| 104 | </listitem> |
| 105 | </varlistentry> |
| 106 | |
| 107 | <varlistentry id="FlagsCatMinusLowerH"> |
| 108 | <term>-h<indexterm id="IndexCatMinusLowerH"><primary>-h</primary></indexterm>, --noheader<indexterm id="IndexCatMinusNoheader"><primary>--noheader</primary></indexterm></term> |
| 109 | <listitem> |
| 110 | <para> |
| 111 | No header on output soundfile. |
| 112 | Don't write a file header, just binary samples. |
| 113 | </para> |
| 114 | </listitem> |
| 115 | </varlistentry> |
| 116 | |
| 117 | <varlistentry id="FlagsCatMinusLowerI"> |
| 118 | <term>-i FILE<indexterm id="IndexCatMinusLowerI"><primary>-i</primary></indexterm>, --input=FILE<indexterm id="IndexCatMinusInput"><primary>--input</primary></indexterm></term> |
| 119 | <listitem> |
| 120 | <para> |
| 121 | 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. |
| 122 | </para> |
| 123 | <para> |
| 124 | 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. 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. |
| 125 | </para> |
| 126 | <para> |
| 127 | The audio coming in using <emphasis>-i</emphasis> can be received using opcodes like <link linkend="inch"><citetitle>inch</citetitle></link>. |
| 128 | </para> |
| 129 | </listitem> |
| 130 | </varlistentry> |
| 131 | |
| 132 | <varlistentry id="FlagsCatMinusUpperJ"> |
| 133 | <term>-J<indexterm id="IndexCatMinusUpperJ"><primary>-J</primary></indexterm>, --ircam<indexterm id="IndexCatMinusIrcam"><primary>--ircam</primary></indexterm>, --format=ircam<indexterm id="IndexCatMinusFIrcam"><primary>--format=ircam</primary></indexterm></term> |
| 134 | <listitem> |
| 135 | <para> |
| 136 | Write an IRCAM format soundfile. |
| 137 | </para> |
| 138 | </listitem> |
| 139 | </varlistentry> |
| 140 | |
| 141 | <varlistentry id="FlagsCatMinusUpperK"> |
| 142 | <term>-K<indexterm id="IndexCatMinusUpperK"><primary>-K</primary></indexterm>, --nopeaks<indexterm id="IndexCatMinusNopeaks"><primary>--nopeaks</primary></indexterm></term> |
| 143 | <listitem> |
| 144 | <para> |
| 145 | Do not generate any PEAK chunks. |
| 146 | </para> |
| 147 | </listitem> |
| 148 | </varlistentry> |
| 149 | |
| 150 | <varlistentry id="FlagsCatMinusLowerL"> |
| 151 | <term>-l<indexterm id="IndexCatMinusLowerL"><primary>-l</primary></indexterm>, --format=long<indexterm id="IndexCatMinusFormatLong"><primary>--format=long</primary></indexterm></term> |
| 152 | <listitem> |
| 153 | <para> |
| 154 | Use long integer audio samples. |
| 155 | </para> |
| 156 | </listitem> |
| 157 | </varlistentry> |
| 158 | |
| 159 | <varlistentry id="FlagsCatMinusLowerN"> |
| 160 | <term>-n<indexterm id="IndexCatMinusLowerN"><primary>-n</primary></indexterm>, --nosound<indexterm id="IndexCatMinusNosound"><primary>--nosound</primary></indexterm></term> |
| 161 | <listitem> |
| 162 | <para> |
| 163 | No sound. Do all processing, but bypass writing of sound to disk. This flag does not change the execution in any other way. |
| 164 | </para> |
| 165 | </listitem> |
| 166 | </varlistentry> |
| 167 | |
| 168 | <varlistentry id="FlagsCatMinusLowerO"> |
| 169 | <term>-o FILE<indexterm id="IndexCatMinusLowerO"><primary>-o</primary></indexterm>, --output=FILE<indexterm id="IndexCatMinusOutput"><primary>--output</primary></indexterm></term> |
| 170 | <listitem> |
| 171 | <para> |
| 172 | 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>. |
| 173 | </para> |
| 174 | <para> |
| 175 | The name <emphasis>dac</emphasis> or <emphasis>devaudio</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. 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. |
| 176 | </para> |
| 177 | </listitem> |
| 178 | </varlistentry> |
| 179 | |
| 180 | <varlistentry id="FlagsCatMinusMinusOgg"> |
| 181 | <term>--ogg<indexterm id="IndexCatMinusMinusOgg"><primary>--ogg</primary></indexterm></term> |
| 182 | <listitem> |
| 183 | <para> |
| 184 | Set output file format to ogg. (Csound 5.18 and later). |
| 185 | </para> |
| 186 | </listitem> |
| 187 | </varlistentry> |
| 188 | |
| 189 | <varlistentry id="FlagsCatMinusMinusVBR"> |
| 190 | <term>--vbr-quality=X<indexterm id="IndexCatMinusMinusVBR"><primary>--vbr-quality=X</primary></indexterm></term> |
| 191 | <listitem> |
| 192 | <para> |
| 193 | Set variable bit-rate quality for output to ogg. (Csound 6.03 and later). |
| 194 | </para> |
| 195 | </listitem> |
| 196 | </varlistentry> |
| 197 | |
| 198 | <varlistentry id="FlagsCatMinusUpperR"> |
| 199 | <term>-R<indexterm id="IndexCatMinusUpperR"><primary>-R</primary></indexterm>, --rewrite<indexterm id="IndexCatMinusRewrite"><primary>--rewrite</primary></indexterm></term> |
| 200 | <listitem> |
| 201 | <para> |
| 202 | Continually rewrite the header while writing the soundfile (WAV/AIFF). |
| 203 | </para> |
| 204 | </listitem> |
| 205 | </varlistentry> |
| 206 | |
| 207 | <varlistentry id="FlagsCatMinusLowerS"> |
| 208 | <term>-s<indexterm id="IndexCatMinusLowerS"><primary>-s</primary></indexterm>, --format=short<indexterm id="IndexCatMinusFormatShort"><primary>--format=short</primary></indexterm></term> |
| 209 | <listitem> |
| 210 | <para> |
| 211 | Use short integer audio samples. |
| 212 | </para> |
| 213 | </listitem> |
| 214 | </varlistentry> |
| 215 | |
| 216 | <varlistentry id="FlagsCatMinusLowerU"> |
| 217 | <term>-u<indexterm |
| 218 | id="IndexCatMinusLowerU"><primary>-u</primary></indexterm>, |
| 219 | --format=ulaw<indexterm |
| 220 | id="IndexCatMinusFormatUlaw"><primary>--format=ulaw</primary></indexterm></term> |
| 221 | <listitem> |
| 222 | <para> |
| 223 | Use u-law audio samples. |
| 224 | </para> |
| 225 | </listitem> |
| 226 | </varlistentry> |
| 227 | |
| 228 | <varlistentry id="FlagsCatMinusUpperW"> |
| 229 | <term>-W<indexterm id="IndexCatMinusUpperW"><primary>-W</primary></indexterm>, --wave<indexterm id="IndexCatMinusWave"><primary>--wave</primary></indexterm>, --format=wave<indexterm id="IndexCatMinusFWave"><primary>--format=wave</primary></indexterm></term> |
| 230 | <listitem> |
| 231 | <para> |
| 232 | Write a WAV format soundfile. |
| 233 | </para> |
| 234 | </listitem> |
| 235 | </varlistentry> |
| 236 | |
| 237 | <varlistentry id="FlagsCatMinusUpperZ"> |
| 238 | <term>-Z<indexterm id="IndexCatMinusUpperZ"><primary>-Z</primary></indexterm>, --dither<indexterm id="IndexCatMinusDither"><primary>--dither</primary></indexterm></term> |
| 239 | <listitem> |
| 240 | <para> |
| 241 | Switch on dithering of audio conversion from internal |
| 242 | floating point to 32, 16 and 8-bit formats. The default |
| 243 | form of the dither is triangular. |
| 244 | </para> |
| 245 | </listitem> |
| 246 | </varlistentry> |
| 247 | |
| 248 | <varlistentry id="FlagsCatMinusUpperZ2"> |
| 249 | <term>-Z<indexterm id="IndexCatMinusUpperZd"><primary>-Zd</primary></indexterm>, --dither--triangular<indexterm id="IndexCatMinusDitherTrangular"><primary>--dither--triangular</primary></indexterm>, --dither--uniform<indexterm id="IndexCatMinusDitherUniform"><primary>--dither--uniform</primary></indexterm></term> |
| 250 | <listitem> |
| 251 | <para> |
| 252 | Switch on dithering of audio conversion from internal |
| 253 | floating point to 32, 16 and 8-bit formats. In the case |
| 254 | of -Z the next digit should be a 1 (for trangular) or a |
| 255 | 2 (for uniform). The exact interpretation depends on |
| 256 | the output system. |
| 257 | </para> |
| 258 | </listitem> |
| 259 | </varlistentry> |
| 260 | |
| 261 | <varlistentry id="FlagsCatMinusLimiter"> |
| 262 | <term>--limiter<indexterm id="IndexCatLimiter"><primary>--limiter=num</primary></indexterm></term> |
| 263 | <listitem> |
| 264 | <para> |
| 265 | Use a limiter when outputing audio samples. The |
| 266 | limiting value is 0.5 or the value given in the range [0,1]. |
| 267 | </para> |
| 268 | </listitem> |
| 269 | </varlistentry> |
| 270 | |
| 271 | </variablelist> |
| 272 | |
| 273 | <variablelist> |
| 274 | <title>Output File Id tags</title> |
| 275 | <varlistentry id="FlagsCatMinusPlusIdArtist"> |
| 276 | <term>-+id_artist=string<indexterm id="IndexCatMinusPlusIdArtist"><primary>-+id_artist</primary></indexterm></term> |
| 277 | <listitem> |
| 278 | <para> |
| 279 | (max. length = 200 characters) Artist tag in output soundfile (no spaces) |
| 280 | </para> |
| 281 | </listitem> |
| 282 | </varlistentry> |
| 283 | |
| 284 | <varlistentry id="FlagsCatMinusPlusIdComment"> |
| 285 | <term>-+id_comment=string<indexterm id="IndexCatMinusPlusIdComment"><primary>-+id_comment</primary></indexterm></term> |
| 286 | <listitem> |
| 287 | <para> |
| 288 | (max. length = 200 characters) Comment tag in output soundfile (no spaces) |
| 289 | </para> |
| 290 | </listitem> |
| 291 | </varlistentry> |
| 292 | |
| 293 | <varlistentry id="FlagsCatMinusPlusIdCopyright"> |
| 294 | <term>-+id_copyright=string<indexterm id="IndexCatMinusPlusIdCopyright"><primary>-+id_copyright</primary></indexterm></term> |
| 295 | <listitem> |
| 296 | <para> |
| 297 | (max. length = 200 characters) Copyright tag in output soundfile (no spaces) |
| 298 | </para> |
| 299 | </listitem> |
| 300 | </varlistentry> |
| 301 | |
| 302 | <varlistentry id="FlagsCatMinusPlusIdSCopyright"> |
| 303 | <term>-+id_scopyright=integer<indexterm id="IndexCatMinusPlusIdSCopyright"><primary>-+id_scopyright</primary></indexterm></term> |
| 304 | <listitem> |
| 305 | <para> |
| 306 | (Sincle version 6.05) Simple copyright/licence encoded as |
| 307 | an integer. Coding is: |
| 308 | <simplelist> |
| 309 | <member>0: "All rights reserved" (default)</member> |
| 310 | <member>1: "Creative Commons Attribution-NonCommercial-NoDerivatives (CC BY-NC-ND)"</member> |
| 311 | <member>2: "Creative Commons Attribution-NonCommercial-ShareAlike (CC BY-NC-SA)"</member> |
| 312 | <member>3: "Creative Commons Attribution-NonCommercial (CC BY-NC)"</member> |
| 313 | <member>4: "Creative Commons Attribution-NoDerivatives (CC BY-ND)"</member> |
| 314 | <member>5: "Creative Commons Attribution-ShareAlike (CC BY-SA)"</member> |
| 315 | <member>6: "Creative Commons Attribution-ShareAlike (CC BY)"</member> |
| 316 | <member>7: "Licenced under BSD"</member> |
| 317 | </simplelist> |
| 318 | </para> |
| 319 | </listitem> |
| 320 | </varlistentry> |
| 321 | |
| 322 | <varlistentry id="FlagsCatMinusPlusIdDate"> |
| 323 | <term>-+id_date=string<indexterm id="IndexCatMinusPlusIdDate"><primary>-+id_date</primary></indexterm></term> |
| 324 | <listitem> |
| 325 | <para> |
| 326 | (max. length = 200 characters) Date tag in output soundfile (no spaces) |
| 327 | </para> |
| 328 | </listitem> |
| 329 | </varlistentry> |
| 330 | |
| 331 | <varlistentry id="FlagsCatMinusPlusIdSoftware"> |
| 332 | <term>-+id_software=string<indexterm id="IndexCatMinusPlusIdSoftware"><primary>-+id_software</primary></indexterm></term> |
| 333 | <listitem> |
| 334 | <para> |
| 335 | (max. length = 200 characters) Software tag in output soundfile (no spaces) |
| 336 | </para> |
| 337 | </listitem> |
| 338 | </varlistentry> |
| 339 | |
| 340 | <varlistentry id="FlagsCatMinusPlusIdTitle"> |
| 341 | <term>-+id_title=string<indexterm id="IndexCatMinusPlusIdTitle"><primary>-+id_title</primary></indexterm></term> |
| 342 | <listitem> |
| 343 | <para> |
| 344 | (max. length = 200 characters) Title tag in output soundfile (no spaces) |
| 345 | </para> |
| 346 | </listitem> |
| 347 | </varlistentry> |
| 348 | |
| 349 | </variablelist> |
| 350 | |
| 351 | <variablelist> |
| 352 | <title>Realtime Audio Input/Output</title> |
| 353 | <varlistentry id="FlagsCatMinusLowerIadc"> |
| 354 | <term>-i adc[DEVICE]<indexterm id="IndexCatMinusLowerIadc"><primary>-i</primary></indexterm>, --input=adc[DEVICE]<indexterm id="IndexCatMinusInputIadc"><primary>--input</primary></indexterm></term> |
| 355 | <listitem> |
| 356 | <para> |
| 357 | 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. |
| 358 | </para> |
| 359 | </listitem> |
| 360 | </varlistentry> |
| 361 | |
| 362 | <varlistentry id="FlagsCatMinusLowerOdac"> |
| 363 | <term>-o dac[DEVICE]<indexterm id="IndexCatMinusLowerOdac"><primary>-o</primary></indexterm>, --output=dac[DEVICE]<indexterm id="IndexCatMinusOutputdac"><primary>--output</primary></indexterm></term> |
| 364 | <listitem> |
| 365 | <para> |
| 366 | The name <emphasis>dac</emphasis> or <emphasis>devaudio</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. |
| 367 | </para> |
| 368 | </listitem> |
| 369 | </varlistentry> |
| 370 | |
| 371 | <varlistentry id="FlagsCatMinusPlusRtaudio"> |
| 372 | <term>-+rtaudio=string<indexterm id="IndexCatMinusRtaudio"><primary>-+rtaudio</primary></indexterm></term> |
| 373 | <listitem> |
| 374 | <para> |
| 375 | (max. length = 20 characters) Real time audio module name. |
| 376 | The default is PortAudio (all platforms). 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. |
| 377 | </para> |
| 378 | </listitem> |
| 379 | </varlistentry> |
| 380 | |
| 381 | <varlistentry id="FlagsCatMinusMinussetsr"> |
| 382 | <term>--set-system-sr<indexterm id="IndexCatMinusMinussetsr"><primary>--get-system-sr</primary></indexterm></term> |
| 383 | <listitem> |
| 384 | <para> |
| 385 | sets sr to the system sr, requires previous -o dac. |
| 386 | If the audio does not support this request then -1 is reported. |
| 387 | </para> |
| 388 | </listitem> |
| 389 | </varlistentry> |
| 390 | |
| 391 | <varlistentry id="FlagsCatMinusRealtime"> |
| 392 | <term>--realtime<indexterm |
| 393 | id="IndexCatMinusRealtime"><primary>--realtime</primary></indexterm></term> |
| 394 | <listitem> |
| 395 | <para> |
| 396 | realtime priority mode is switched on which the following effects: |
| 397 | <orderedlist> |
| 398 | <listitem> |
| 399 | <simpara>all opcode audio file reading/writing is handled asynchronously |
| 400 | by a separate thread.</simpara> |
| 401 | </listitem> |
| 402 | <listitem> |
| 403 | <simpara>all init-pass operations are also performed asynchronously.</simpara> |
| 404 | </listitem> |
| 405 | </orderedlist> |
| 406 | </para> |
| 407 | </listitem> |
| 408 | </varlistentry> |
| 409 | |
| 410 | <varlistentry id="FlagsCatMinusPlusServer"> |
| 411 | <term>-+server=string<indexterm id="IndexCatMinusPlusServer"><primary>-+server</primary></indexterm></term> |
| 412 | <listitem> |
| 413 | <para> |
| 414 | Pulseaudio server name. |
| 415 | </para> |
| 416 | </listitem> |
| 417 | </varlistentry> |
| 418 | |
| 419 | <varlistentry id="FlagsCatMinusPlusOutputStream"> |
| 420 | <term>-+output_stream=string<indexterm id="IndexCatMinusPlusOutputStream"><primary>-+output_stream</primary></indexterm></term> |
| 421 | <listitem> |
| 422 | <para> |
| 423 | Pulseaudio output stream name. |
| 424 | </para> |
| 425 | </listitem> |
| 426 | </varlistentry> |
| 427 | |
| 428 | <varlistentry id="FlagsCatMinusPlusInputStream"> |
| 429 | <term>-+input_stream=string<indexterm id="IndexCatMinusPlusInputStream"><primary>-+input_stream</primary></indexterm></term> |
| 430 | <listitem> |
| 431 | <para> |
| 432 | Pulseaudio input stream name. |
| 433 | </para> |
| 434 | </listitem> |
| 435 | </varlistentry> |
| 436 | |
| 437 | <varlistentry id="FlagsCatMinusPlusJackClient"> |
| 438 | <term>-+jack_client=[client_name]<indexterm id="IndexCatMinusPlusJackClient"><primary>-+jack_client</primary></indexterm></term> |
| 439 | <listitem> |
| 440 | <para> |
| 441 | The client name used by Csound, defaults to 'csound5'. |
| 442 | If multiple instances of Csound connect to the JACK server, |
| 443 | different client names need to be used to avoid name |
| 444 | conflicts. (Linux and Mac OS X only) |
| 445 | </para> |
| 446 | </listitem> |
| 447 | </varlistentry> |
| 448 | <varlistentry id="IndexCatMinusPlusJackPortname"> |
| 449 | <term>-+jack_inportname=[input port name prefix], -+jack_outportname=[output port name prefix] |
| 450 | <indexterm id="IndexCatMinusPlusJackInportname"><primary>-+jack_inportname</primary></indexterm> |
| 451 | <indexterm id="IndexCatMinusPlusJackOutportname"><primary>-+jack_outportname</primary></indexterm></term> |
| 452 | <listitem> |
| 453 | <para> |
| 454 | Name prefix of Csound JACK input/output ports; the default is |
| 455 | 'input' and 'output'. The actual port name is the channel number |
| 456 | appended to the name prefix. (Linux and Mac OS X only) |
| 457 | </para> |
| 458 | <para> |
| 459 | Example: with the above default settings, a stereo orchestra will |
| 460 | create these ports in full duplex operation: |
| 461 | <screen> |
| 462 | csound5:input1 (record left) |
| 463 | csound5:input2 (record right) |
| 464 | csound5:output1 (playback left) |
| 465 | csound5:output2 (playback right)</screen> |
| 466 | </para> |
| 467 | </listitem> |
| 468 | </varlistentry> |
| 469 | |
| 470 | </variablelist> |
| 471 | |
| 472 | <variablelist> |
| 473 | <title>MIDI File Input/Ouput</title> |
| 474 | |
| 475 | <varlistentry id="FlagsCatMinusAftzero"> |
| 476 | <term>--aft-zero<indexterm id="IndexCatMinusAftzero"><primary>--aft-zero></primary></indexterm></term> |
| 477 | <listitem> |
| 478 | <para> |
| 479 | Use zero as initial value of after-touch. |
| 480 | </para> |
| 481 | </listitem> |
| 482 | </varlistentry> |
| 483 | |
| 484 | <varlistentry id="FlagsCatMinusUpperF"> |
| 485 | <term>-F FILE<indexterm id="IndexCatMinusUpperF"><primary>-F</primary></indexterm>, --midifile=FILE<indexterm id="IndexCatMinusMidifile"><primary>--midifile</primary></indexterm></term> |
| 486 | <listitem> |
| 487 | <para> |
| 488 | Read MIDI events from MIDI file <emphasis>FILE</emphasis>. |
| 489 | The file should have only one track in Csound versions 4.xx and |
| 490 | earlier; this limitation is removed in Csound 5.00. |
| 491 | </para> |
| 492 | </listitem> |
| 493 | </varlistentry> |
| 494 | |
| 495 | <varlistentry id="FlagsCatMinusMidiOutFile"> |
| 496 | <term>--midioutfile=FILENAME<indexterm id="IndexCatMinusMidiOutFile"><primary>--midioutfile</primary></indexterm></term> |
| 497 | <listitem> |
| 498 | <para> |
| 499 | Save MIDI output to a file (Csound 5.00 and later only). |
| 500 | </para> |
| 501 | </listitem> |
| 502 | </varlistentry> |
| 503 | |
| 504 | <varlistentry id="FlagsCatMinusPlusMuteTracks"> |
| 505 | <term>-+mute_tracks=string<indexterm id="IndexCatMinusPlusMuteTracks"><primary>-+mute_tracks</primary></indexterm></term> |
| 506 | <listitem> |
| 507 | <para> |
| 508 | (max. length = 255 characters) Ignore events (other than |
| 509 | tempo changes) in MIDI file tracks defined by pattern (for |
| 510 | example, -+mute_tracks=00101 will mute the third and fifth |
| 511 | tracks). |
| 512 | </para> |
| 513 | </listitem> |
| 514 | </varlistentry> |
| 515 | |
| 516 | <varlistentry id="FlagsCatMinusPlusRawControlerMode"> |
| 517 | <term>-+raw_controller_mode=boolean<indexterm id="IndexCatMinusRawControllerMode"><primary>-+raw_controller_mode</primary></indexterm></term> |
| 518 | <listitem> |
| 519 | <para> |
| 520 | Disable special handling of MIDI controllers like sustain |
| 521 | pedal, all notes off etc., allowing the use of all the 128 |
| 522 | controllers for any purpose. This will also set the initial value |
| 523 | of all controllers to zero. Default: no. |
| 524 | </para> |
| 525 | </listitem> |
| 526 | </varlistentry> |
| 527 | |
| 528 | <varlistentry id="FlagsCatMinusPlusSkipSeconds"> |
| 529 | <term>-+skip_seconds=float<indexterm id="IndexCatMinusSkipSeconds"><primary>-+skip_seconds</primary></indexterm></term> |
| 530 | <listitem> |
| 531 | <para> |
| 532 | (min: 0) Start playback at the specified time (in seconds), |
| 533 | skipping earlier events in the score and MIDI file. |
| 534 | </para> |
| 535 | </listitem> |
| 536 | </varlistentry> |
| 537 | |
| 538 | <varlistentry id="FlagsCatMinusUpperT"> |
| 539 | <term>-T<indexterm id="IndexCatMinusUpperT"><primary>-T</primary></indexterm>, --terminate-on-midi<indexterm id="IndexCatMinusTerminateonmidi"><primary>--terminate-on-midi</primary></indexterm></term> |
| 540 | <listitem> |
| 541 | <para> |
| 542 | Terminate the performance when the end of MIDI file is reached. |
| 543 | </para> |
| 544 | </listitem> |
| 545 | </varlistentry> |
| 546 | |
| 547 | </variablelist> |
| 548 | |
| 549 | <variablelist> |
| 550 | <title>MIDI Realtime Input/Ouput</title> |
| 551 | |
| 552 | <varlistentry id="FlagsCatMinusUpperM"> |
| 553 | <term>-M DEVICE<indexterm id="IndexCatMinusUpperM"><primary>-M</primary></indexterm>, --midi-device=DEVICE<indexterm id="IndexCatMinusMididevice"><primary>--midi-device</primary></indexterm></term> |
| 554 | <listitem> |
| 555 | <para> |
| 556 | Read MIDI events from device |
| 557 | <emphasis>DEVICE</emphasis>. If using ALSA MIDI |
| 558 | (-+rtmidi=alsa), devices are selected by name and not |
| 559 | number. So, you need to use an option like -M |
| 560 | hw:CARD,DEVICE where CARD and DEVICE are the card and |
| 561 | device numbers (e.g. -M hw:1,0). In the case of |
| 562 | CoreMIDI and MME, DEVICE should be a number, and if it |
| 563 | is out of range, an error occurs and the valid device |
| 564 | numbers are printed. |
| 565 | With PortMIDI, DEVICE is either a number for single port |
| 566 | input, 'a' for listening to all input ports, or 'm' |
| 567 | for mapping ports to MIDI channels above 16. In this |
| 568 | case, device 0 uses 1-16, device 1 uses 17-32, ... |
| 569 | device N uses (N+1)*channel. |
| 570 | The options 'a' and 'm' are also convenient when you |
| 571 | don't have devices as they will not generate an error. |
| 572 | </para> |
| 573 | </listitem> |
| 574 | </varlistentry> |
| 575 | |
| 576 | <varlistentry id="FlagsCatMidiKey"> |
| 577 | <term>--midi-key=N<indexterm id="IndexCatMidiKey"><primary>--midi-key=N</primary></indexterm></term> |
| 578 | <listitem> |
| 579 | <para> |
| 580 | Route MIDI note on message key number to pfield N as |
| 581 | MIDI value [0-127]. |
| 582 | </para> |
| 583 | </listitem> |
| 584 | </varlistentry> |
| 585 | |
| 586 | <varlistentry id="FlagsCatMidiKeyCps"> |
| 587 | <term>--midi-key-cps=N<indexterm id="IndexCatMidiKeyCps"><primary>--midi-key-cps=N</primary></indexterm></term> |
| 588 | <listitem> |
| 589 | <para> |
| 590 | Route MIDI note on message key number to pfield N |
| 591 | as cycles per second. |
| 592 | </para> |
| 593 | </listitem> |
| 594 | </varlistentry> |
| 595 | |
| 596 | <varlistentry id="FlagsCatMidiKeyOct"> |
| 597 | <term>--midi-key-oct=N<indexterm id="IndexCatMidiKeyOct"><primary>--midi-key-oct=N</primary></indexterm></term> |
| 598 | <listitem> |
| 599 | <para> |
| 600 | Route MIDI note on message key number to pfield |
| 601 | N as linear octave. |
| 602 | </para> |
| 603 | </listitem> |
| 604 | </varlistentry> |
| 605 | |
| 606 | <varlistentry id="FlagsCatMidiKeyPch"> |
| 607 | <term>--midi-key-pch=N<indexterm id="IndexCatMidiKeyPch"><primary>--midi-key-pch=N</primary></indexterm></term> |
| 608 | <listitem> |
| 609 | <para> |
| 610 | Route MIDI note on message key number to |
| 611 | pfield N as oct.pch (pitch class). |
| 612 | </para> |
| 613 | </listitem> |
| 614 | </varlistentry> |
| 615 | |
| 616 | <varlistentry id="FlagsCatMidiVelocity"> |
| 617 | <term>--midi-velocity=N<indexterm id="IndexCatMidiVelocity"><primary>--midi-velocity=N</primary></indexterm></term> |
| 618 | <listitem> |
| 619 | <para> |
| 620 | Route MIDI note on message velocity number to pfield |
| 621 | N as MIDI value [0-127]. |
| 622 | </para> |
| 623 | </listitem> |
| 624 | </varlistentry> |
| 625 | |
| 626 | <varlistentry id="FlagsCatMidiKeyAmp"> |
| 627 | <term>--midi-velocity-amp=N<indexterm id="IndexCatMidiKeyAmp"><primary>--midi-velocity-amp=N</primary></indexterm></term> |
| 628 | <listitem> |
| 629 | <para> |
| 630 | Route MIDI note on message velocity number to pfield |
| 631 | N as amplitude [0-0dbFS]. |
| 632 | </para> |
| 633 | </listitem> |
| 634 | </varlistentry> |
| 635 | |
| 636 | <varlistentry id="FlagsCatMinusMidiOutFile2"> |
| 637 | <term>--midioutfile=FILENAME<indexterm id="IndexCatMinusMidiOutFile2"><primary>--midioutfile</primary></indexterm></term> |
| 638 | <listitem> |
| 639 | <para> |
| 640 | Save MIDI output to a file (Csound 5.00 and later only). |
| 641 | </para> |
| 642 | </listitem> |
| 643 | </varlistentry> |
| 644 | |
| 645 | <varlistentry id="FlagsCatMinusPlusRtmidi"> |
| 646 | <term>-+rtmidi=string<indexterm id="IndexCatMinusRtmidi"><primary>-+rtmidi</primary></indexterm></term> |
| 647 | <listitem> |
| 648 | <para> |
| 649 | (max. length = 20 characters) Real time MIDI module name. Defaults to PortMidi, other |
| 650 | options (depending on build options): Linux: alsa; Windows: mme, winmm. In addition, |
| 651 | null can be used on all platforms, to disable the use of any real time MIDI plugin. |
| 652 | </para> |
| 653 | <para>ALSA MIDI devices are selected by name and not number. So, you |
| 654 | need to use an option like -M hw:CARD,DEVICE where CARD and |
| 655 | DEVICE are the card and device numbers (e.g. -M hw:1,0). |
| 656 | </para> |
| 657 | </listitem> |
| 658 | </varlistentry> |
| 659 | |
| 660 | <varlistentry id="FlagsCatMinusUpperQ"> |
| 661 | <term>-Q DEVICE<indexterm id="IndexCatMinusUpperQ"><primary>-Q</primary></indexterm></term> |
| 662 | <listitem> |
| 663 | <para> |
| 664 | Enables MIDI OUT operations to device id <emphasis>DEVICE</emphasis>. This flag allows |
| 665 | parallel MIDI OUT and DAC performance. Unfortunately the real-time timing implemented |
| 666 | in Csound is completely managed by DAC buffer sample flow. So MIDI OUT operations can |
| 667 | present some time irregularities. These irregularities can be reduced by using a lower |
| 668 | value for the <link linkend="FlagsCatMinusLowerB"><citetitle>-b</citetitle></link> |
| 669 | flag. |
| 670 | </para> |
| 671 | <para> |
| 672 | If using ALSA MIDI (<link |
| 673 | linkend="FlagsCatMinusPlusRtmidi"><citetitle>-+rtmidi</citetitle></link>=alsa), |
| 674 | devices are selected by name and not number. So, you need to use an option like -Q |
| 675 | hw:CARD,DEVICE where CARD and DEVICE are the card and device numbers (e.g. -Q hw:1,0). |
| 676 | In the case of PortMidi and MME, DEVICE should be a number, and if it is out of range, |
| 677 | an error occurs and the valid device numbers are printed. |
| 678 | </para> |
| 679 | </listitem> |
| 680 | </varlistentry> |
| 681 | |
| 682 | </variablelist> |
| 683 | |
| 684 | <variablelist> |
| 685 | <title>Display</title> |
| 686 | <varlistentry id="FlagsCatMinusCsdLineNums"> |
| 687 | <term>--csd-line-nums=NUM<indexterm id="IndexCatMinusCsdLineNums"><primary>--csd-line-nums</primary></indexterm></term> |
| 688 | <listitem> |
| 689 | <para> |
| 690 | Determines how line numbers are counted and displayed for error messages when |
| 691 | processing a Csound Unified Document file (.csd). This flag has no effect if |
| 692 | separate orchestra and score files are used. (Csound 5.08 and later). |
| 693 | <itemizedlist> |
| 694 | <listitem><para>0 = line numbers are relative to the beginning of the orchestra or score sections of the CSD</para></listitem> |
| 695 | <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> |
| 696 | </itemizedlist> |
| 697 | </para> |
| 698 | </listitem> |
| 699 | </varlistentry> |
| 700 | |
| 701 | <varlistentry id="FlagsCatMinusLowerD"> |
| 702 | <term>-d<indexterm id="IndexCatMinusLowerD"><primary>-d</primary></indexterm>, --nodisplays<indexterm id="IndexCatMinusNodisplays"><primary>--nodisplays</primary></indexterm></term> |
| 703 | <listitem> |
| 704 | <para> |
| 705 | Suppress all displays. See <link linkend="FlagsCatMinusUpperO"><citetitle>-O</citetitle></link> |
| 706 | if you want to save the log to a file. <note>This option disables all features depending on the opcodes "display" and "dispfft"</note><note>This option is ignored in .csound6rc.</note> |
| 707 | </para> |
| 708 | </listitem> |
| 709 | </varlistentry> |
| 710 | |
| 711 | <varlistentry id="FlagsCatMinusDisplays"> |
| 712 | <term>--displays<indexterm id="IndexCatMinusDisplays"><primary>--displays</primary></indexterm></term> |
| 713 | <listitem> |
| 714 | <para> |
| 715 | Enables displays, reverting the effect of any previous -d flag. |
| 716 | </para> |
| 717 | </listitem> |
| 718 | </varlistentry> |
| 719 | |
| 720 | <varlistentry id="FlagsCatMinusUpperG"> |
| 721 | <term>-G<indexterm id="IndexCatMinusUpperG"><primary>-G</primary></indexterm>, --postscriptdisplay<indexterm id="IndexCatMinusPostscriptdisplay"><primary>--postscriptdisplay</primary></indexterm></term> |
| 722 | <listitem> |
| 723 | <para> |
| 724 | Suppress graphics, use PostScript displays instead. |
| 725 | </para> |
| 726 | </listitem> |
| 727 | </varlistentry> |
| 728 | |
| 729 | <varlistentry id="FlagsCatMinusLowerG"> |
| 730 | <term>-g<indexterm id="IndexCatMinusLowerG"><primary>-g</primary></indexterm>, --asciidisplay<indexterm id="IndexCatMinusAsciidisplay"><primary>--asciidisplay</primary></indexterm></term> |
| 731 | <listitem> |
| 732 | <para> |
| 733 | Suppress graphics, use ASCII displays instead. |
| 734 | </para> |
| 735 | </listitem> |
| 736 | </varlistentry> |
| 737 | |
| 738 | <varlistentry id="FlagsCatMinusUpperH"> |
| 739 | <term>-H#<indexterm id="IndexCatMinusUpperH"><primary>-H</primary></indexterm>, --heartbeat=NUM<indexterm id="IndexCatMinusHeartbeat"><primary>--heartbeat</primary></indexterm></term> |
| 740 | <listitem> |
| 741 | <para> |
| 742 | Print a heartbeat after each soundfile buffer write: |
| 743 | <itemizedlist> |
| 744 | <listitem><para>no NUM, a rotating bar.</para></listitem> |
| 745 | <listitem><para>NUM = 1, a rotating bar.</para></listitem> |
| 746 | <listitem><para>NUM = 2, a dot (.)</para></listitem> |
| 747 | <listitem><para>NUM = 3, filesize in seconds.</para></listitem> |
| 748 | <listitem><para>NUM = 4, sound a bell.</para></listitem> |
| 749 | </itemizedlist> |
| 750 | </para> |
| 751 | </listitem> |
| 752 | </varlistentry> |
| 753 | |
| 754 | <varlistentry id="FlagsCatMinusLowerM"> |
| 755 | <term>-m NUM<indexterm id="IndexCatMinusLowerM"><primary>-m</primary></indexterm>, --messagelevel=NUM<indexterm id="IndexCatMinusMessagelevel"><primary>--messagelevel</primary></indexterm></term> |
| 756 | <listitem> |
| 757 | <para> |
| 758 | Message level for standard (terminal) output. Takes the <emphasis>sum</emphasis> of any of the following values: |
| 759 | <itemizedlist> |
| 760 | <listitem><para>1 = note amplitude messages</para></listitem> |
| 761 | <listitem><para>2 = samples out of range message</para></listitem> |
| 762 | <listitem><para>4 = warning messages</para></listitem> |
| 763 | <listitem><para>128 = print benchmark information</para></listitem> |
| 764 | <listitem><para>1024 = suppress deprecated messages</para></listitem> |
| 765 | </itemizedlist> |
| 766 | And exactly one of these to select note amplitude format: |
| 767 | <itemizedlist> |
| 768 | <listitem><para>0 = raw amplitudes, no colours</para></listitem> |
| 769 | <listitem><para>32 = dB, no colors</para></listitem> |
| 770 | <listitem><para>64 = dB, out of range highlighted with red</para></listitem> |
| 771 | <listitem><para>96 = dB, all colors</para></listitem> |
| 772 | <listitem><para>256 = raw, out of range highlighted with red</para></listitem> |
| 773 | <listitem><para>512 = raw, all colours</para></listitem> |
| 774 | </itemizedlist> |
| 775 | |
| 776 | All messages can be suppressed by using message level 16. |
| 777 | </para> |
| 778 | |
| 779 | <para> |
| 780 | The default is 135 (128+4+2+1), which means all messages, raw |
| 781 | amplitude values, and printing elapsed time at the end of |
| 782 | performance. The coloring of raw amplitudes was introduced |
| 783 | in version 5.04. Suppression of deprecated messages new in 6.14. |
| 784 | </para> |
| 785 | </listitem> |
| 786 | </varlistentry> |
| 787 | |
| 788 | <varlistentry id="FlagsCatMinusLowerMA"> |
| 789 | <term>--m-amps=NUM<indexterm id="IndexCatMinusLowerMA"></indexterm></term> |
| 790 | <listitem> |
| 791 | <para> |
| 792 | Message level for amplitudes on standard (terminal) output. |
| 793 | <itemizedlist> |
| 794 | <listitem><para>0 = no note amplitude messages</para></listitem> |
| 795 | <listitem><para>1 = note amplitude messages</para></listitem> |
| 796 | </itemizedlist> |
| 797 | </para> |
| 798 | </listitem> |
| 799 | </varlistentry> |
| 800 | |
| 801 | <varlistentry id="FlagsCatMinusLowerMR"> |
| 802 | <term>--m-range=NUM<indexterm id="IndexCatMinusLowerMR"></indexterm></term> |
| 803 | <listitem> |
| 804 | <para> |
| 805 | Message level for out of range messages on standard (terminal) output. |
| 806 | <itemizedlist> |
| 807 | <listitem><para>0 = no samples out of range message</para></listitem> |
| 808 | <listitem><para>1 = samples out of range message</para></listitem> |
| 809 | </itemizedlist> |
| 810 | </para> |
| 811 | </listitem> |
| 812 | </varlistentry> |
| 813 | |
| 814 | <varlistentry id="FlagsCatMinusLowerMW"> |
| 815 | <term>--m-warnings=NUM<indexterm id="IndexCatMinusLowerMW"></indexterm></term> |
| 816 | <listitem> |
| 817 | <para> |
| 818 | Message level for warnings on standard (terminal) output. |
| 819 | <itemizedlist> |
| 820 | <listitem><para>0 = no warning messages</para></listitem> |
| 821 | <listitem><para>1 = warning messages</para></listitem> |
| 822 | </itemizedlist> |
| 823 | </para> |
| 824 | </listitem> |
| 825 | </varlistentry> |
| 826 | |
| 827 | <varlistentry id="FlagsCatMinusLowerMD"> |
| 828 | <term>--m-dB=NUM<indexterm id="IndexCatMinusLowerMD"></indexterm></term> |
| 829 | <listitem> |
| 830 | <para> |
| 831 | Message level for amplitude format on standard (terminal) output. |
| 832 | <itemizedlist> |
| 833 | <listitem><para>0 = absolute amplitude messages</para></listitem> |
| 834 | <listitem><para>1 = dB amplitude messages</para></listitem> |
| 835 | </itemizedlist> |
| 836 | </para> |
| 837 | </listitem> |
| 838 | </varlistentry> |
| 839 | |
| 840 | <varlistentry id="FlagsCatMinusLowerMC"> |
| 841 | <term>--m-colours=NUM<indexterm id="IndexCatMinusLowerMC"></indexterm></term> |
| 842 | <listitem> |
| 843 | <para> |
| 844 | Message level for amplitude format on standard (terminal) output. |
| 845 | <itemizedlist> |
| 846 | <listitem><para>0 = no colouring of amplitude messages</para></listitem> |
| 847 | <listitem><para>1 = colouring of amplitude messages</para></listitem> |
| 848 | </itemizedlist> |
| 849 | </para> |
| 850 | </listitem> |
| 851 | </varlistentry> |
| 852 | |
| 853 | <varlistentry id="FlagsCatMinusLowerMB"> |
| 854 | <term>--m-benchmarks=NUM<indexterm id="IndexCatMinusLowerMB"></indexterm></term> |
| 855 | <listitem> |
| 856 | <para> |
| 857 | Message level for benchmark information on standard (terminal) output. |
| 858 | <itemizedlist> |
| 859 | <listitem><para>0 = no benchnark numbers</para></listitem> |
| 860 | <listitem><para>1 = print benchnark numbers</para></listitem> |
| 861 | </itemizedlist> |
| 862 | </para> |
| 863 | </listitem> |
| 864 | </varlistentry> |
| 865 | |
| 866 | <varlistentry id="FlagsCatMinusPlusMsgColor"> |
| 867 | <term>-+msg_color=boolean<indexterm id="IndexCatMinusPlusMsgColor"><primary>-+msg_color</primary></indexterm></term> |
| 868 | <listitem> |
| 869 | <para> |
| 870 | Enable message attributes (colors etc.); might need to be disabled on some terminals which print strange characters instead of modifying text attributes. default: true. |
| 871 | </para> |
| 872 | </listitem> |
| 873 | </varlistentry> |
| 874 | |
| 875 | <varlistentry id="FlagsCatMinusLowerV"> |
| 876 | <term>-v<indexterm id="IndexCatMinusLowerV"><primary>-v</primary></indexterm>, --verbose<indexterm id="IndexCatMinusVerbose"><primary>--verbose</primary></indexterm></term> |
| 877 | <listitem> |
| 878 | <para> |
| 879 | Verbose translate and run. Prints details of orch translation and performance, enabling errors to be more clearly located. |
| 880 | </para> |
| 881 | </listitem> |
| 882 | </varlistentry> |
| 883 | |
| 884 | <varlistentry id="FlagsCatMinusLowerZ"> |
| 885 | <term>-z NUM<indexterm id="IndexCatMinusLowerZ"><primary>-z</primary></indexterm>, --list-opcodesNUM<indexterm id="IndexCatMinusListopcodes"><primary>--list-opcodesNUM</primary></indexterm></term> |
| 886 | <listitem> |
| 887 | <para> |
| 888 | List opcodes in this version: |
| 889 | <itemizedlist> |
| 890 | <listitem><para>no NUM, just show names</para></listitem> |
| 891 | <listitem><para>NUM = 0, just show names</para></listitem> |
| 892 | <listitem><para>NUM = 1, show arguments to each opcode using the format <opname> <outargs> <inargs></para></listitem> |
| 893 | <listitem><para>NUM = 2, show names including |
| 894 | deprecated ones</para></listitem> |
| 895 | <listitem><para>NUM = 3, show arguments to each |
| 896 | opcode, including deprecated ones, using the format <opname> <outargs> <inargs></para></listitem> |
| 897 | </itemizedlist> |
| 898 | </para> |
| 899 | </listitem> |
| 900 | </varlistentry> |
| 901 | </variablelist> |
| 902 | |
| 903 | <variablelist> |
| 904 | <title>Performance Configuration and Control</title> |
| 905 | |
| 906 | <varlistentry id="FlagsCatMinusUpperB"> |
| 907 | <term>-B NUM<indexterm id="IndexCatMinusUpperB"><primary>-B</primary></indexterm>, --hardwarebufsamps=NUM<indexterm id="IndexCatMinusHardwarebufsamps"><primary>--hardwarebufsamps</primary></indexterm></term> |
| 908 | <listitem> |
| 909 | <para> |
| 910 | 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. |
| 911 | </para> |
| 912 | </listitem> |
| 913 | </varlistentry> |
| 914 | |
| 915 | <varlistentry id="FlagsCatMinusLowerB"> |
| 916 | <term>-b NUM<indexterm id="IndexCatMinusLowerB"><primary>-b</primary></indexterm>, --iobufsamps=NUM<indexterm id="IndexCatMinusIobufsamps"><primary>--iobufsamps</primary></indexterm></term> |
| 917 | <listitem> |
| 918 | <para> |
| 919 | 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. |
| 920 | </para> |
| 921 | <para> |
| 922 | Note: if both -iadc and -odac are used at the same time (full duplex |
| 923 | real time audio), the -b option should be set to an integer multiple |
| 924 | of ksmps. |
| 925 | </para> |
| 926 | </listitem> |
| 927 | </varlistentry> |
| 928 | |
| 929 | <varlistentry id="FlagsCatDaemon"> |
| 930 | <term>--daemon<indexterm id="IndexCatDaemon"><primary>--daemon</primary></indexterm></term> |
| 931 | <listitem> |
| 932 | <para> |
| 933 | Run in daemon mode: do not exit if CSD/orchestra is not given, is empty or does not compile. |
| 934 | </para> |
| 935 | </listitem> |
| 936 | </varlistentry> |
| 937 | |
| 938 | <varlistentry id="FlagsCatMinusLowerK"> |
| 939 | <term>-k NUM<indexterm |
| 940 | id="IndexCatMinusLowerK"><primary>-k</primary></indexterm>, |
| 941 | --control-rate=NUM<indexterm |
| 942 | id="IndexCatMinusControlrate"><primary>--control-rate</primary></indexterm></term> |
| 943 | <listitem> |
| 944 | <para> |
| 945 | Override the control rate (<link linkend="kr"><citetitle>KR</citetitle></link>) supplied by the orchestra. |
| 946 | </para> |
| 947 | </listitem> |
| 948 | </varlistentry> |
| 949 | |
| 950 | <varlistentry id="FlagsCatMinusUpperL"> |
| 951 | <term>-L DEVICE<indexterm id="IndexCatMinusUpperL"><primary>-L</primary></indexterm>, --score-in=DEVICE<indexterm id="IndexCatMinusScorein"><primary>--score-in</primary></indexterm></term> |
| 952 | <listitem> |
| 953 | <para> |
| 954 | 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. |
| 955 | </para> |
| 956 | <note> |
| 957 | <para> |
| 958 | The -L flag is only valid on *NIX systems which have pipes. It doesn't work on Windows. |
| 959 | </para> |
| 960 | </note> |
| 961 | </listitem> |
| 962 | </varlistentry> |
| 963 | |
| 964 | <varlistentry id="FlagsCatMinusOmacro"> |
| 965 | <term>--omacro:XXX=YYY<indexterm id="IndexCatMinusOmacro"><primary>--omacro</primary></indexterm></term> |
| 966 | <listitem> |
| 967 | <para> |
| 968 | Set orchestra macro XXX to value YYY |
| 969 | </para> |
| 970 | </listitem> |
| 971 | </varlistentry> |
| 972 | |
| 973 | <varlistentry id="FlagsCatMinusPort"> |
| 974 | <term>--port=N<indexterm id="IndexCatMinusPort"><primary>--port</primary></indexterm></term> |
| 975 | <listitem> |
| 976 | <para> |
| 977 | Set UDP port on which to listen for commands and instruments/orchestra code |
| 978 | (implies --daemon). See <link |
| 979 | linkend="udpserver"><citetitle>UDP Server</citetitle></link>. |
| 980 | </para> |
| 981 | </listitem> |
| 982 | </varlistentry> |
| 983 | |
| 984 | |
| 985 | <varlistentry id="FlagsCatMinusUdpEcho"> |
| 986 | <term>--udp-echo<indexterm |
| 987 | id="IndexCatMinusUdpEcho"><primary>--udp-echo</primary></indexterm></term> |
| 988 | <listitem> |
| 989 | <para> |
| 990 | Switches on printing of UDP commands on the terminal. Any |
| 991 | messages received by the UDP server are echoed (whether |
| 992 | they are valid commands or not). |
| 993 | </para> |
| 994 | </listitem> |
| 995 | </varlistentry> |
| 996 | |
| 997 | <varlistentry id="FlagsCatMinusUdpConsole"> |
| 998 | <term>--udp-console=address:port<indexterm |
| 999 | id="IndexCatMinusUdpConsole"><primary>--udp-console</primary></indexterm></term> |
| 1000 | <listitem> |
| 1001 | <para> |
| 1002 | Redirects the console messages to a remote address:port |
| 1003 | via UDP. |
| 1004 | </para> |
| 1005 | </listitem> |
| 1006 | </varlistentry> |
| 1007 | |
| 1008 | <varlistentry id="FlagsCatMinusUdpMirrorConsole"> |
| 1009 | <term>--udp-mirror-console=address:port<indexterm |
| 1010 | id="IndexCatMinusUdpMirrorConsole"><primary>--udp-mirror-console</primary></indexterm></term> |
| 1011 | <listitem> |
| 1012 | <para> |
| 1013 | Mirrors the console messages to a remote address:port |
| 1014 | via UDP. |
| 1015 | </para> |
| 1016 | </listitem> |
| 1017 | </varlistentry> |
| 1018 | |
| 1019 | <varlistentry id="FlagsCatMinusLowerR"> |
| 1020 | <term>-r NUM<indexterm id="IndexCatMinusLowerR"><primary>-r</primary></indexterm>, --sample-rate=NUM<indexterm id="IndexCatMinusSamplerate"><primary>--sample-rate</primary></indexterm></term> |
| 1021 | <listitem> |
| 1022 | <para> |
| 1023 | Override the sampling rate (<link linkend="sr"><citetitle>SR</citetitle></link>) supplied by the orchestra. |
| 1024 | </para> |
| 1025 | </listitem> |
| 1026 | </varlistentry> |
| 1027 | |
| 1028 | <varlistentry id="FlagsCatSampleAccurate"> |
| 1029 | <term>--sample-accurate<indexterm id="IndexCatSampleAccurate"><primary>--sample-accurate</primary></indexterm></term> |
| 1030 | <listitem> |
| 1031 | <para> |
| 1032 | Start and stop instances of instruments at the nearest |
| 1033 | sample to the requested time. This is in contrast to |
| 1034 | traditional Csound which rounds the times to the nearest |
| 1035 | k-cycle. Note that this does not work with tied notes, |
| 1036 | nor does it change the Midi timing (as this is only |
| 1037 | affected by ksmps size (control rate). |
| 1038 | </para> |
| 1039 | </listitem> |
| 1040 | </varlistentry> |
| 1041 | |
| 1042 | <varlistentry id="FlagsCatMinusSched"> |
| 1043 | <term>--sched<indexterm id="IndexCatMinusSched"><primary>--sched</primary></indexterm></term> |
| 1044 | <listitem> |
| 1045 | <para> |
| 1046 | <emphasis>Linux only.</emphasis> Use real-time scheduling and lock memory. (Also requires <link linkend="FlagsCatMinusLowerD"><citetitle>-d</citetitle></link> and either <link linkend="FlagsCatMinusLowerO"><citetitle>-o dac</citetitle></link> or <link linkend="FlagsCatMinusLowerO"><citetitle>-o devaudio</citetitle></link>). |
| 1047 | See also --sched=N below. |
| 1048 | </para> |
| 1049 | </listitem> |
| 1050 | </varlistentry> |
| 1051 | |
| 1052 | <varlistentry id="FlagsCatMinusSchedN"> |
| 1053 | <term>--sched=N<indexterm id="IndexCatMinusSchedN"><primary>--sched=N</primary></indexterm></term> |
| 1054 | <listitem> |
| 1055 | <para> |
| 1056 | <emphasis>Linux only.</emphasis> |
| 1057 | Same as --sched, but allows specifying a priority value: if N |
| 1058 | is positive (in the range 1 to 99) the scheduling policy |
| 1059 | SCHED_RR will be used with a priority of N; otherwise, |
| 1060 | SCHED_OTHER is used with the nice level set to N. |
| 1061 | Can also be used in the format --sched=N,MAXCPU,TIME to enable the |
| 1062 | use of a "watchdog" thread that terminates Csound if the average CPU |
| 1063 | usage exceeds MAXCPU percents over a peroid of TIME seconds (new in |
| 1064 | Csound 5.00). |
| 1065 | </para> |
| 1066 | </listitem> |
| 1067 | </varlistentry> |
| 1068 | |
| 1069 | |
| 1070 | <varlistentry id="FlagsCatMinusSmacro"> |
| 1071 | <term>--smacro:XXX=YYY<indexterm id="IndexCatMinusSmacro"><primary>--smacro</primary></indexterm></term> |
| 1072 | <listitem> |
| 1073 | <para> |
| 1074 | Set score macro XXX to value YYY |
| 1075 | </para> |
| 1076 | </listitem> |
| 1077 | </varlistentry> |
| 1078 | |
| 1079 | <varlistentry id="FlagsCatMinusStrset"> |
| 1080 | <term>--strset<indexterm id="IndexCatMinusStrset"><primary>--strset</primary></indexterm></term> |
| 1081 | <listitem> |
| 1082 | <para> |
| 1083 | <emphasis>Csound 5.</emphasis> |
| 1084 | The --strset option allows setting strset string values from |
| 1085 | the command line, in the format '--strsetN=VALUE'. It is |
| 1086 | useful for passing parameters to the orchestra (e.g. file |
| 1087 | names). |
| 1088 | </para> |
| 1089 | </listitem> |
| 1090 | </varlistentry> |
| 1091 | |
| 1092 | |
| 1093 | <varlistentry id="FlagsCatMinusPlusSkipSecondsPerf2"> |
| 1094 | <term>-+skip_seconds=float<indexterm id="IndexCatMinusSkipSecondsPerf"><primary>-+skip_seconds</primary></indexterm></term> |
| 1095 | <listitem> |
| 1096 | <para> |
| 1097 | (min: 0) Start playback at the specified time (in seconds), |
| 1098 | skipping earlier events in the score and MIDI file. |
| 1099 | </para> |
| 1100 | </listitem> |
| 1101 | </varlistentry> |
| 1102 | |
| 1103 | <varlistentry id="FlagsCatMinusLowerT"> |
| 1104 | <term>-t NUM<indexterm id="IndexCatMinusLowerT"><primary>-t</primary></indexterm>, --tempo=NUM<indexterm id="IndexCatMinusTempo"><primary>--tempo=NUM</primary></indexterm></term> |
| 1105 | <listitem> |
| 1106 | <para> |
| 1107 | 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. |
| 1108 | </para> |
| 1109 | </listitem> |
| 1110 | |
| 1111 | </varlistentry> |
| 1112 | <varlistentry id="FlagsCatMinusLowerJ"> |
| 1113 | <term>-j NUM<indexterm |
| 1114 | id="IndexCatMinusLowerJ"><primary>-j</primary></indexterm>, |
| 1115 | --num-threads=NUM<indexterm id="IndexCatMinusNumthread"><primary>--num-threads=NUM</primary></indexterm></term> |
| 1116 | <listitem> |
| 1117 | <para> |
| 1118 | Make <emphasis>NUM</emphasis> processes available for |
| 1119 | rendering. This is only advantageous if the number of |
| 1120 | processors on the computer is the same or more that the number |
| 1121 | of requested processes. It also may slow rendering down |
| 1122 | if ksmps is too small. |
| 1123 | </para> |
| 1124 | </listitem> |
| 1125 | </varlistentry> |
| 1126 | |
| 1127 | |
| 1128 | </variablelist> |
| 1129 | |
| 1130 | <variablelist> |
| 1131 | <title>Miscellaneous</title> |
| 1132 | <varlistentry id="FlagsCatMinusAt"> |
| 1133 | <term>-@ FILE<indexterm id="IndexCatMinusAt"><primary>-@</primary></indexterm></term> |
| 1134 | <listitem> |
| 1135 | <para> |
| 1136 | Provide an extended command-line in file <quote>FILE</quote> |
| 1137 | </para> |
| 1138 | </listitem> |
| 1139 | </varlistentry> |
| 1140 | |
| 1141 | <varlistentry id="FlagsCatMinusUpperC"> |
| 1142 | <term>-C<indexterm id="IndexCatMinusUpperC"><primary>-C</primary></indexterm>, --cscore<indexterm id="IndexCatMinusCscore"><primary>--cscore</primary></indexterm></term> |
| 1143 | <listitem> |
| 1144 | <para> |
| 1145 | Use Cscore processing of the scorefile. |
| 1146 | </para> |
| 1147 | </listitem> |
| 1148 | </varlistentry> |
| 1149 | |
| 1150 | <varlistentry id="FlagsCatMinusDefaultPaths"> |
| 1151 | <term>--default-paths<indexterm id="IndexCatMinusDefaultPaths"><primary>--no-default-paths</primary></indexterm></term> |
| 1152 | <listitem> |
| 1153 | <para> |
| 1154 | Reenables adding of directory of CSD/ORC/SCO to search paths, |
| 1155 | 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>). |
| 1156 | </para> |
| 1157 | </listitem> |
| 1158 | </varlistentry> |
| 1159 | |
| 1160 | <varlistentry id="FlagsCatMinusUpperD"> |
| 1161 | <term>-D<indexterm id="IndexCatMinusUpperD"><primary>-D</primary></indexterm>, --defer-gen1<indexterm id="IndexCatMinusDefergen1"><primary>--defer-gen1</primary></indexterm></term> |
| 1162 | <listitem> |
| 1163 | <para> |
| 1164 | Defer GEN01 soundfile loads until performance time. |
| 1165 | </para> |
| 1166 | </listitem> |
| 1167 | </varlistentry> |
| 1168 | |
| 1169 | <varlistentry id="FlagsCatMinusEnvEquals"> |
| 1170 | <term>--env:NAME=VALUE<indexterm id="IndexCatMinusEnvEquals"><primary>--env:NAME=VALUE</primary></indexterm></term> |
| 1171 | <listitem> |
| 1172 | <para> |
| 1173 | Set environment variable NAME to VALUE. Note: not all |
| 1174 | environment variables can be set this way, because some are |
| 1175 | read before parsing the command line. INCDIR, SADIR, <link linkend="CommandEnvironment"><citetitle>SFDIR</citetitle></link>, |
| 1176 | and <link linkend="CommandEnvironment"><citetitle>SSDIR</citetitle></link> are known to work. |
| 1177 | </para> |
| 1178 | </listitem> |
| 1179 | </varlistentry> |
| 1180 | |
| 1181 | <varlistentry id="FlagsCatMinusEnvPlusEquals"> |
| 1182 | <term>--env:NAME+=VALUE<indexterm id="IndexCatMinusEnvPlusEquals"><primary>--env:NAME+=VALUE</primary></indexterm></term> |
| 1183 | <listitem> |
| 1184 | <para> |
| 1185 | Append VALUE to ';' separated list of search paths in |
| 1186 | environment variable NAME (should be INCDIR, SADIR, <link linkend="CommandEnvironment"><citetitle>SFDIR</citetitle></link>, |
| 1187 | or <link linkend="CommandEnvironment"><citetitle>SSDIR</citetitle></link>). If a file is found in multiple directories, the |
| 1188 | last will be used. |
| 1189 | </para> |
| 1190 | </listitem> |
| 1191 | </varlistentry> |
| 1192 | |
| 1193 | <varlistentry id="FlagsCatMinusMinusSinesize"> |
| 1194 | <term>--sinesize=integer<indexterm id="IndexCatMinusMinusSinesize"><primary>--sinesize</primary></indexterm></term> |
| 1195 | <listitem> |
| 1196 | <para> |
| 1197 | Set size of internal sine wave (table -1). Should be a |
| 1198 | power of two, and defaults to 16384. |
| 1199 | </para> |
| 1200 | </listitem> |
| 1201 | </varlistentry> |
| 1202 | |
| 1203 | <varlistentry id="FlagsCatMinusExpressionOpt"> |
| 1204 | <term>--expression-opt<indexterm id="IndexCatMinusExpressionOpt"><primary>--expression-opt</primary></indexterm></term> |
| 1205 | <listitem> |
| 1206 | <para> |
| 1207 | <emphasis>Note that this option has no affect in |
| 1208 | csound6.</emphasis> |
| 1209 | |
| 1210 | <emphasis>In Csound 5 only.</emphasis> |
| 1211 | Turns on some optimizations in expressions: |
| 1212 | <itemizedlist> |
| 1213 | <listitem><para>Redundant assignment operations are eliminated whenever |
| 1214 | possible. This means that for example this line |
| 1215 | a1 = a2 + a3 |
| 1216 | will compile as |
| 1217 | a1 Add a2, a3 |
| 1218 | instead of |
| 1219 | #a0 Add a2, a3 |
| 1220 | a1 = #a0 |
| 1221 | saving a temporary variable and an opcode call. Less opcode |
| 1222 | calls result in reduced CPU usage (an average orchestra may |
| 1223 | compile about 10% faster with --expression-opt, but it |
| 1224 | depends largely on how many expressions are used, what the |
| 1225 | control rate is (see also below), etc.; thus, the difference |
| 1226 | may be less, but also much more).</para></listitem> |
| 1227 | <listitem><para>number of a- and k-rate temporary |
| 1228 | variables is significantly reduced. This expression</para> |
| 1229 | <programlisting> |
| 1230 | (a1 + a2 + a3 + a4)</programlisting> |
| 1231 | <para>will compile as</para> |
| 1232 | <programlisting> |
| 1233 | #a0 Add a1, a2 |
| 1234 | #a0 Add #a0, a3 |
| 1235 | #a0 Add #a0, a4 ; (the result is in #a0)</programlisting> |
| 1236 | <para>instead of</para> |
| 1237 | <programlisting> |
| 1238 | #a0 Add a1, a2 |
| 1239 | #a1 Add #a0, a3 |
| 1240 | #a2 Add #a1, a4 ; (the result is in #a2)</programlisting> |
| 1241 | |
| 1242 | <para>The advantages of less temporary variables are:</para> |
| 1243 | <itemizedlist> |
| 1244 | <listitem><simpara>less cache memory is used, which may improve performance |
| 1245 | of orchestras with many a-rate expressions and a low |
| 1246 | control rate (e.g. ksmps = 100)</simpara></listitem> |
| 1247 | <listitem><simpara>large orchestras may load faster due to less different |
| 1248 | identifier names</simpara></listitem> |
| 1249 | <listitem> |
| 1250 | <simpara>index overflow errors (i.e. when messages like this |
| 1251 | Case2: indx=-56004 (ffff253c); (short)indx = 9532 (253c) |
| 1252 | are printed and odd behavior or a Csound crash occurs) may |
| 1253 | be fixed, because such errors are triggered by too many |
| 1254 | different (especially a-rate) variable names in a single |
| 1255 | instrument.</simpara> |
| 1256 | </listitem> |
| 1257 | </itemizedlist> |
| 1258 | <para>Note that this optimization (due to technical reasons) is not |
| 1259 | performed on i-rate temporary variables.</para> |
| 1260 | </listitem> |
| 1261 | </itemizedlist> |
| 1262 | <warning> |
| 1263 | <title>Warning</title> |
| 1264 | <para> |
| 1265 | When --expression-opt is turned on, it is not allowed to use the i() |
| 1266 | function with an expression argument, and relying on the value of |
| 1267 | k-rate expressions at i-time is unsafe. |
| 1268 | </para> |
| 1269 | </warning> |
| 1270 | </para> |
| 1271 | </listitem> |
| 1272 | </varlistentry> |
| 1273 | |
| 1274 | |
| 1275 | <varlistentry id="FlagsCatMinusVersion"> |
| 1276 | <term>--version<indexterm id="IndexCatMinusVersion"><primary>--version</primary></indexterm></term> |
| 1277 | <listitem> |
| 1278 | <para> |
| 1279 | Exits after printing version information. |
| 1280 | </para> |
| 1281 | </listitem> |
| 1282 | </varlistentry> |
| 1283 | |
| 1284 | |
| 1285 | <varlistentry id="FlagsCatMinusPrintVersion"> |
| 1286 | <term>--print_version<indexterm |
| 1287 | id="IndexCatMinusPrintVesion"><primary>--print_version</primary></indexterm></term> |
| 1288 | <listitem> |
| 1289 | <para> |
| 1290 | Prints the version information at the end of the rendering. |
| 1291 | </para> |
| 1292 | </listitem> |
| 1293 | </varlistentry> |
| 1294 | |
| 1295 | |
| 1296 | <varlistentry id="FlagsCatMinusMinusGetSR"> |
| 1297 | <term>--get-system-sr<indexterm id="IndexCatMinusMinusGetSR"><primary>--get-system-sr</primary></indexterm></term> |
| 1298 | <listitem> |
| 1299 | <para> |
| 1300 | Prints system sr and exits, requires previous -o dac. |
| 1301 | If the audio does not support this request then -1 is reported. |
| 1302 | </para> |
| 1303 | </listitem> |
| 1304 | </varlistentry> |
| 1305 | |
| 1306 | <varlistentry id="FlagsCatMinusHelp"> |
| 1307 | <term>--help<indexterm id="IndexCatMinusHelp"><primary>--help</primary></indexterm></term> |
| 1308 | <listitem> |
| 1309 | <para> |
| 1310 | Display on-line help message. |
| 1311 | </para> |
| 1312 | </listitem> |
| 1313 | </varlistentry> |
| 1314 | |
| 1315 | <varlistentry id="FlagsCatMinusMinusDevices"> |
| 1316 | <term>--devices[=x]<indexterm id="IndexCatMinusMinusDevices"><primary>--devices</primary></indexterm></term> |
| 1317 | <listitem> |
| 1318 | <para> |
| 1319 | List audio devices (x=out, output devices only; x=in, |
| 1320 | input; else input and output) and exit. |
| 1321 | </para> |
| 1322 | </listitem> |
| 1323 | </varlistentry> |
| 1324 | |
| 1325 | <varlistentry id="FlagsCatMinusUpperI"> |
| 1326 | <term>-I<indexterm id="IndexCatMinusUpperI"><primary>-I</primary></indexterm>, --i-only<indexterm id="IndexCatMinusIonly"><primary>--i-only</primary></indexterm></term> |
| 1327 | <listitem> |
| 1328 | <para> |
| 1329 | <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. |
| 1330 | </para> |
| 1331 | </listitem> |
| 1332 | </varlistentry> |
| 1333 | |
| 1334 | <varlistentry id="FlagsCatMinusPlusIgnoreCsopts"> |
| 1335 | <term>-+ignore_csopts=integer<indexterm id="IndexCatMinusPlusIgnoreCsopts"><primary>-+ignore_csopts=</primary></indexterm></term> |
| 1336 | <listitem> |
| 1337 | <para> |
| 1338 | 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>. |
| 1339 | </para> |
| 1340 | </listitem> |
| 1341 | </varlistentry> |
| 1342 | |
| 1343 | <varlistentry id="FlagsCatMinusMinusKsmps"> |
| 1344 | <term>--ksmps=N<indexterm id="IndexCatMinusMinusKsmps"><primary>--ksmps</primary></indexterm></term> |
| 1345 | <listitem> |
| 1346 | <para> |
| 1347 | Set ksmps override to N (6.05 and later). |
| 1348 | </para> |
| 1349 | </listitem> |
| 1350 | </varlistentry> |
| 1351 | b |
| 1352 | <varlistentry id="FlagsCatMinusPlusMaxStrLen"> |
| 1353 | <term>-+max_str_len=integer<indexterm id="IndexCatMinusPlusMaxStrLen"><primary>-+max_str_len</primary></indexterm></term> |
| 1354 | <listitem> |
| 1355 | <para> |
| 1356 | (min: 10, max: 10000) Maximum length of string variables + 1; |
| 1357 | defaults to 256 allowing a length of 255 characters. The length of |
| 1358 | string constants is not limited by this parameter. |
| 1359 | </para> |
| 1360 | </listitem> |
| 1361 | </varlistentry> |
| 1362 | |
| 1363 | <varlistentry id="FlagsCatMinusUpperN"> |
| 1364 | <term>-N<indexterm id="IndexCatMinusUpperN"><primary>-N</primary></indexterm>, --notify<indexterm id="IndexCatMinusNotify"><primary>--notify</primary></indexterm></term> |
| 1365 | <listitem> |
| 1366 | <para> |
| 1367 | Notify (ring the bell) when score or MIDI track is done. |
| 1368 | </para> |
| 1369 | </listitem> |
| 1370 | </varlistentry> |
| 1371 | |
| 1372 | <varlistentry id="FlagsCatMinusNoDefaultPaths"> |
| 1373 | <term>--no-default-paths<indexterm id="IndexCatMinusNoDefaultPaths"><primary>--no-default-paths</primary></indexterm></term> |
| 1374 | <listitem> |
| 1375 | <para> |
| 1376 | Disables adding of directory of CSD/ORC/SCO to search paths. |
| 1377 | </para> |
| 1378 | </listitem> |
| 1379 | </varlistentry> |
| 1380 | |
| 1381 | <varlistentry id="FlagsCatMinusNoExpressionOpt"> |
| 1382 | <term>--no-expression-opt<indexterm id="IndexCatMinusNoExpressionOpt"><primary>--no-expression-opt</primary></indexterm></term> |
| 1383 | <listitem> |
| 1384 | <para> |
| 1385 | Disables expression optimization. |
| 1386 | </para> |
| 1387 | </listitem> |
| 1388 | </varlistentry> |
| 1389 | |
| 1390 | <varlistentry id="FlagsCatMinusUpperO"> |
| 1391 | <term>-O FILE<indexterm id="IndexCatMinusUpperO"><primary>-O</primary></indexterm>, --logfile=FILE<indexterm id="IndexCatMinusLogfile"><primary>--logfile</primary></indexterm></term> |
| 1392 | <listitem> |
| 1393 | <para> |
| 1394 | Log output to file <emphasis>FILE</emphasis>. If |
| 1395 | <emphasis>FILE</emphasis> is null (i.e. <emphasis>-O |
| 1396 | null</emphasis> or <emphasis>--logfile=null</emphasis>) all |
| 1397 | printing of messages to the console is disabled. <note>This option |
| 1398 | only works from the command line and not from .csound6rc or |
| 1399 | a CsOptions section of a csd file. It needs to be acted |
| 1400 | upon before sound proper starts. It is ignored in .csound6rc |
| 1401 | and CsOptions.</note> |
| 1402 | </para> |
| 1403 | </listitem> |
| 1404 | </varlistentry> |
| 1405 | |
| 1406 | <varlistentry id="FlagsCatMinusOpcodeLib"> |
| 1407 | <term>--opcode-lib=LIBNAME<indexterm id="IndexCatMinusOpcodeLib"><primary>--opcode-lib</primary></indexterm></term> |
| 1408 | <listitem> |
| 1409 | <para> |
| 1410 | Load plugin library <emphasis>LIBNAME</emphasis>. |
| 1411 | </para> |
| 1412 | </listitem> |
| 1413 | </varlistentry> |
| 1414 | |
| 1415 | <varlistentry id="FlagCatMinuMinusOrc"> |
| 1416 | <term>--orc orcname<indexterm id="IndexCatMinusMinusOrc"><primary>--orc</primary></indexterm></term> |
| 1417 | <listitem> |
| 1418 | <para> |
| 1419 | Set the argument as the orchestra file. Used when no |
| 1420 | score is required. (Csound 5.18 and later). |
| 1421 | </para> |
| 1422 | </listitem> |
| 1423 | </varlistentry> |
| 1424 | |
| 1425 | <varlistentry id="FlagsCatMinusSyntaxCheckOnly"> |
| 1426 | <term>--syntax-check-only<indexterm id="IndexCatMinusSyntaxCheckOnly"><primary>--syntax-check-only</primary></indexterm></term> |
| 1427 | <listitem> |
| 1428 | <para> |
| 1429 | 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). |
| 1430 | </para> |
| 1431 | </listitem> |
| 1432 | </varlistentry> |
| 1433 | |
| 1434 | <varlistentry id="FlagsCatSimpleScore"> |
| 1435 | <term>--simple-sorted-score<indexterm id="IndexCatMinusSimplesortedscore"><primary>--simple-sorted-score</primary></indexterm></term> |
| 1436 | <listitem> |
| 1437 | <para> |
| 1438 | Retains the sorted score file score.srt in a simple readable |
| 1439 | format upon exit. (New in version 6.14). |
| 1440 | </para> |
| 1441 | </listitem> |
| 1442 | <listitem> |
| 1443 | <para> |
| 1444 | An alternative form is to follow immediately with an = and |
| 1445 | a file name , to select where to write the score. |
| 1446 | </para> |
| 1447 | </listitem> |
| 1448 | </varlistentry> |
| 1449 | |
| 1450 | <varlistentry id="FlagsCatMinusUpperU"> |
| 1451 | <term>-U UTILITY<indexterm id="IndexCatMinusUpperU"><primary>-U</primary></indexterm>, --utility=UTILITY<indexterm id="IndexCatMinusUtility"><primary>--utility</primary></indexterm></term> |
| 1452 | <listitem> |
| 1453 | <para> |
| 1454 | Invoke the utility program <emphasis>UTILITY</emphasis>. Use any |
| 1455 | invalid name to list the available utilities. |
| 1456 | </para> |
| 1457 | </listitem> |
| 1458 | </varlistentry> |
| 1459 | |
| 1460 | <varlistentry id="FlagsCatMinusLowerX"> |
| 1461 | <term>-x FILE<indexterm id="IndexCatMinusLowerX"><primary>-x</primary></indexterm>, --extract-score=FILE<indexterm id="IndexCatMinusExtractscore"><primary>--extract-score</primary></indexterm></term> |
| 1462 | <listitem> |
| 1463 | <para> |
| 1464 | Extract a portion of the sorted score, score.srt, using the extract file <emphasis>FILE</emphasis> (see <link linkend="commandpreextract"><citetitle>Extract</citetitle></link>). |
| 1465 | </para> |
| 1466 | </listitem> |
| 1467 | </varlistentry> |
| 1468 | |
| 1469 | </variablelist> |
| 1470 | |
| 1471 | </section> |