next up previous
Next: Applying transformations to amplitudes Up: A Manual for TrikTraks Previous: Non-linear changes over time:

Setting the number of ``periods'' of a path

The path followed by a transformation can be given a number of ``periods''. When you request a path, by default TrikTraks gives you at least one period, and less than two.

You can specify the minimum number of periods you'd like in the following way:

     output(sound.wav)    # name of the output soundfile
     duration(5)          # duration of the transformation
     initial(1)           # play the initial state for these many seconds
     final(1)             # play the final state for these many seconds
     
     20 40                # element 0: duration in samples
     1000                 # amplitude
     
     30 60 sin periods(3)           # element 1: duration in samples
     -10000               # amplitude
     
     40 80                # element 2: duration in samples
     10000                # amplitude
     
     10 20 sin periods(4) # element 3: duration in samples
     -500                 # amplitude

The above datafile is identical with the previous one, except for the addition of the period specifications. Now, the 2nd element's duration follows the path of a sine wave that will have at least 3 periods. The 4th element's duration follows the path of a sine wave that will have at least 5 periods.

Try synthesizing this sound, and listen to it. The plot of the transformation looks like this:

\scalebox {0.8}{\includegraphics*{graphics/tracks2.ps}}

You can give high numbers for the periods as well. Acoustically things get very messy, and intriguing, very fast. Here's the previous example, but with a high number of periods for one of the elements:

     output(sound.wav)    # name of the output soundfile
     duration(5)          # duration of the transformation
     initial(1)           # play the initial state for these many seconds
     final(1)             # play the final state for these many seconds
     
     20 40                # element 0: duration in samples
     1000                 # amplitude
     
     30 60 sin periods(300) # element 1: duration in samples
     -10000               # amplitude
     
     40 80                # element 2: duration in samples
     10000                # amplitude
     
     10 20 sin periods(4) # element 3: duration in samples
     -500                 # amplitude

And here's the plot of the transformations:

\scalebox {0.8}{\includegraphics*{graphics/tracks3.ps}}


next up previous
Next: Applying transformations to amplitudes Up: A Manual for TrikTraks Previous: Non-linear changes over time:
Arun Chandra
arunc@evergreen.edu