next up previous
Next: Wiggles, and twiggles, and Up: A Manual for Wigout Previous: Events

A Wigout example to try

Here's a complete Wigout example for you to try. Use your favorite word processor, type in the three following files, and remember to save them as plain text files (sometimes called ``DOS files''). Save them in the same directory as your Wigout executable.

All three files must share the same name, but have distinguishing extensions:

In a datafile, Wigout will ignore blank lines, multiple spaces (or tabs), and anything following a hash mark (#).

Here's the segments file. Type it in, and save it as a file called try.sg.

          #
          #   An example segments file
          #
          w1 wiggle
          20    10   60 0.001             # duration (init, max, min, inc)
          -15000 20000 -20000 40          # amplitude (init, max, min, inc)

          w2 wiggle
          40   40    10 0.002             # duration
          11000 20000 -20000 80           # amplitude

          w3 wiggle
          20   20   40 0.003              # duration
          700 20000 -20000 50             # amplitude

          w4 wiggle
          30   30   20 0.004              # duration
          -15000 20000 -20000 90          # amplitude

And here's the states file, defining three states. Type this in, and save it as a file called try.st.

          #
          #   An example states file
          #
          s1 w2 w3 w1 w4           # state id, segment ids.
          s2 w1 w4 w2 w4 w3 w4
          s3 w4 w3 w1

And here's the events file, defining four events. Save this as a file called try.ev.

          #
          #   An example events file
          #
          s1 0 0.5 1        # state id, start, end, stereo
          s2 0 3 0
          s1 1 2 1
          s1 2.5 4 1
          s3 4 6 0.5

Now, run Wigout on your datafiles, like this:

		  wigout try

Wigout should respond with this:

     wigout try
     Reading in datafiles try.sg try.st try.ev
     4 segments read in
     3 states read in
     5 events read in
     creating a 6 second sound
     
     1 of 5 events ...  102 states 
     2 of 5 events ...  400 states 
     3 of 5 events ...  204 states 
     4 of 5 events ...  306 states 
     5 of 5 events ...  642 states amplifying by   6.02 dB   done
     writing sound to try.wav

If needed, correct any input errors that might be reported. If none are reported, your should get a soundfile called try.wav, which you can play on your system.


next up previous
Next: Wiggles, and twiggles, and Up: A Manual for Wigout Previous: Events
Arun Chandra
arunc@evergreen.edu