next up previous
Next: Polynomial paths Up: A variety of transformational Previous: A variety of transformational

Standard paths

These four paths are used just like the sin path was used above. Try replacing some of the ``sin'' path with some of these other paths. Of course, you can mix and match paths as you prefer: for example, and element's duration could follow the path of a square wave, while its amplitude follows the path of a sawtooth wave.

Here's a datafile to create a sound using all the standard paths, followed by a plot of the paths used.

     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 tri periods(6) # element 0: duration in samples
     1000 -1000 tri periods(2)  # amplitude
    
     30 60 saw periods(4) # element 1: duration in samples
     -10000 10000 saw periods(6)  # amplitude
    
     40 80 squ periods(5) # element 2: duration in samples
     10000 -10000 squ periods(3)  # amplitude
 
     10 20 sin periods(4) # element 3: duration in samples
     -500 500 sin periods(7)      # amplitude

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


next up previous
Next: Polynomial paths Up: A variety of transformational Previous: A variety of transformational
Arun Chandra
arunc@evergreen.edu