First, create a datafile with the following information. You don't need to type the hash mark (#) or anything that follows it on a line. That's just a comment.
Use your favorite word processor. Type in all the information below, and then save it as a file called data. Be sure to save the resulting file as a plain text file. (Some word processors call this a ``DOS file''.) Remember to save the file in the same directory where your TrikTraks program resides.
Here's the datafile to generate a 5-second sound.
output(sound.wav) # name of the output soundfile
duration(5) # duration of the transformation in seconds
20 # element 0: duration in samples
1000 # amplitude
30 # element 1: duration in samples
-10000 # amplitude
40 # element 2: duration in samples
10000 # amplitude
10 # element 3: duration in samples
-500 # amplitude
The first line has the command output(). This tells TrikTraks to call your output soundfile ``sound.wav''. (It's a custom on Intel computers to give soundfiles the extension ``.wav''.)
The second line has the command duration(). This tells TrikTraks how long you want the transformation to be, in seconds.
The following lines define the elements that make up your waveform. There are four elements defined in this datafile. The first line of each pair specifies the duration in samples of the element, and the second line specifies its amplitude.
These elements create a waveform that looks like this:
