In all the above examples, the chosen path is constrained to the limits of its initial and final values.
So, if the initial value is 10 and the final value is 40, that means that a path will oscillate between the values of 10 and 40.
The range of the path can be specified, if you wish:
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 -1000 sin periods(2) # amplitude 30 60 sin range(100,10) periods(300) # element 1: duration in samples -10000 # amplitude 40 80 # element 2: duration in samples 10000 -10000 sin periods(3) # amplitude 10 20 sin range(50,5) periods(4) # element 3: duration in samples -500 # amplitude
In this example, the path of element 1 (duration) is given a range greater than its initial and final values.
The specified range cannot be less than the initial and final values. If it is, then TrikTraks will silently change the range to match the initial and final values.
Try it, and hear what it sounds like!