next up previous
Next: Segment type: ciggle Up: Project wigout Previous: Segment type: wiggle

Segment type: twiggle

A twiggle is a triangular wiggle. The idea behind a twiggle was to have a ``triangle'' in which all three sides could be in flux. Thus, there are four variables:

1.
the base height (amplitude)
2.
the base width (duration in samples)
3.
the peak height (amplitude)
4.
the peak location (between 0 and 1, the starting and ending samples of the base)

Below is a portion of the input file used to generate a twiggle with 15 segments. For the sake of brevity, only the data for the first and last segments are given. As the wiggles examples above, the columns from left to right are: initial value, maximum, minimum, and increment.

The number in the final column below (after the hash mark) is the cycle length of the variable, the number of iterations after which that variable returns to its starting magnitude.

#    init       max       min         rate          # cycles
t0  twiggle
        5        40         5     5.384615          #     13 (duration)
   -14000     14000    -14000   543.689331          #    103 (amplitude)
   -14000     14000    -14000    27.846842          #   2011 (peak height)
 0.000000  1.000000  0.000000     0.153846          #     13 (peak loc.)
.
.
.
t14 twiggle
       12        40         5     0.985915          #     71
    -7777     14000    -14000   312.849152          #    179
    -7777     14000    -14000    26.502603          #   2113
 0.222222  1.000000  0.000000     0.028169          #     71

Plots of the waveforms and their spectra are below.

\includegraphics [width=2.5in]{graphics/t300.eps}
\includegraphics [width=2.5in]{graphics/t300f.eps}
\includegraphics [width=2.5in]{graphics/t900.eps}
\includegraphics [width=2.5in]{graphics/t900f.eps}


next up previous
Next: Segment type: ciggle Up: Project wigout Previous: Segment type: wiggle
Arun Chandra
arunc@evergreen.edu