puts
Print a string with an optional newline at the end whenever the trigger signal is positive and changes.
Syntax
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.
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
Credits
Author: Istvan Varga
2005