TYPE: CHOP
TITLE: Wave CHOP

This CHOP produces a variety of waveforms. On top of the actual waveform, an
offset, decay and ramp can be applied.

Multiple channels can be generated by using patterns in the "Channel Name"
parameter. See the manual for Channel Name Creation Options in the section,
Standard Options of CHOPs.  A few examples of name pattern generation:

~c(
    tx ty tz             tx ty tz
    t[xyz]               tx ty tz
    chan[1-4]            chan1 chan2 chan3 chan4
    c[xyz][1-3:2,15]     cx1 cy1 cz1 cx3 cy3 cz3 cx15 cy15 cz15
~c)

The following parameters are applied to the waveform in the order in which they
appear: Offset, Amplitude, Decay, Ramp, and Expression.

Parameters
Waveform
    Type          - The wave type which is one of the following:
	Constant - A constant valued "wave".
	Sine     - A sine wave.
	Gaussian - A Gaussian wave (also known as bell or normal curve)
	Triangle - A triangular sawtooth wave.
	Square   - A square wave.
	Pulse    - A periodic one-sample pulse wave.
	Expression - A user defined non-periodic expression. 
    Period        - The period of the wave.                    /period
    Phase         - The phase of the wave, from 0 to 1.        /phase
    Bias          - The bias of the waveform. Only Gaussian,   /bias
		    triangle and square waves have biases.
    Offset        - The value offset of the waveform.          /offset
    Amplitude     - The amplitude of the waveform.             /amp
    Decay Rate    - The decay rate of the waveform,            /decay
		    represented as the fraction of decay after
		    1 Unit of time (default is one second)
    Ramp Slope    - A ramp is added the wave: amount per Unit  /ramp
		    of time.
    Expression    - Expression to use for "Expression" Type.   /exprs

Channel
    Channel Name  - The names of the channels to create. Patterns
		    like chan[1-20] generate multiple channels.
    Start, End    - The start time of the channels.           /start /end
    Sample Rate   - The sample rate of the channels.          /rate
    Extend Left   - The left extend conditions.
    Extend Right  - The right extend conditions.
    Default Value - The default value for extend conditions.  /defval

Local Variables
    I   - The current index.
    L   - The current loop index, which is reset every period.
    N   - The current period count, starting at zero.
    C   - The current channel (0 to NC-1).
    NC  - The total number of channels.
    P   - The period of the wave (from the Period parameter).
    PH  - The phase of the wave (from the Phase parameter).
    B   - The bias of the wave (from the Bias parameter).

See also: Oscillator
