GENtanh GENtanh "tanh" Generate a table with values on the tanh function. Description Creates an ftable with values of the tanh function. Syntax f # time size "tanh" start end rescale Initialization size -- number of points in the table. Must be a power of 2 or power-of-2 plus 1 (see f statement). start, end -- first and last value to be stored; the GEN draws a curve that goes from start to end: tanh(start) .... tanh(end). The points stored are uniformly spaced between these to the table size rescale -- if not zero the table is not rescaled Examples Here is a simple example of the GENtanh routine. It uses the file gentanh.csd. Example of the GENtanh routine. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. These are the diagrams of the waveforms of the GENtanh routines, as used in the example: f 2 0 8192 "tanh" -100 100 0 - lots of distortion f 2 0 8192 "tanh" -100 100 0 - lots of distortion f 3 0 8192 "tanh" -10 10 0 - less distortion than f2 f 3 0 8192 "tanh" -10 10 0 - less distortion than f2 f 4 0 8192 "tanh" -10 15 0 f 4 0 8192 "tanh" -10 15 0 See Also GENexp and GENsone. More information on this routine: http://www.csoundjournal.com/issue11/distortionSynthesis.html, written by Victor Lazzarini Credits Written by &namejohn;