printk2Signal I/O:Printing and Displayprintk2printk2
Prints a new value every time a control variable changes.
Description
Prints a new value every time a control variable changes.
Syntaxprintk2 kvar [, inumspaces] [, inamed]Initializationinumspaces (optional, default=0) -- number
of space characters printed before the value of
kvar.
inamed (optional, default=0) -- if non zero
print the name of the kvar as well as the value.
Performancekvar -- signal to be printed
Derived from Robin Whittle's printk, prints a new value of kvar each time kvar changes. Useful for monitoring MIDI control changes when using sliders.
WARNING! Do not use this opcode with normal, continuously variant k-signals, because it can hang the computer, as the rate of printing is too fast.
Examples
Here is an example of the printk2 opcode. It uses the file printk2.csd.
Example of the printk2 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:
i1 0.00000
i1 3.00000
i1 1.00000
i1 3.00000
i1 1.00000
i1 2.00000
i1 3.00000
.....
See alsoPrinting and DisplayCreditsAuthor: &namegabriel;Italy1998New in Csound version 3.48named option new in 6.11