printk2 Signal I/O:Printing and Display printk2 printk2 Prints a new value every time a control variable changes. Description Prints a new value every time a control variable changes. Syntax printk2 kvar [, inumspaces] [, inamed] Initialization inumspaces (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. Performance kvar -- 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 also Printing and Display Credits Author: &namegabriel; Italy 1998 New in Csound version 3.48 named option new in 6.11