printSignal I/O:Printing and Displayprintprint
Displays the values init (i-rate) variables.
Description
These units will print orchestra init-values.
Syntaxprint iarg [, iarg1] [, iarg2] [...]Initializationiarg, iarg2, ... -- i-rate arguments.
Performanceprint -- print the current value of the i-time arguments (or expressions) iarg at every i-pass through the instrument.
The print opcode will truncate decimal places and may not show the complete value. Csound's precision depends on whether it is the floats (32-bit) or double (64-bit) version, since most internal calculations use one of these formats. If you need more resolution in the console output, you can try printf.
Examples
Here is an example of the print opcode. It uses the file print.csd.
Example of the print opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
Its output should include lines like these:
instr 1: irand = 2.930
instr 1: irand = 0.420
instr 1: irand = 2.316
See alsoPrinting and Display