puts Strings:Manipulation puts puts Print a string constant or variable Description puts prints a string with an optional newline at the end whenever the trigger signal is positive and changes. Syntax puts Sstr, ktrig[, inonl] Initialization Sstr -- string to be printed inonl (optional, defaults to 0) -- if non-zero, disables the default printing of a newline character at the end of the string Performance ktrig -- trigger signal, should be valid at i-time. The string is printed at initialization time if ktrig is positive, and at performance time whenever ktrig is both positive and different from the previous value. Use a constant value of 1 to print once at note initialization. Examples Here is an example of the puts opcode. It uses the file puts.csd. Example of the puts 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: frequency in Hertz : 440 frequency in Hertz : 441 frequency in Hertz : 442 .... frequency in Hertz : 459 frequency in Hertz : 460 See Also String Manipulation Opcodes Credits Author: Istvan Varga 2005