All of the transformation paths above were applied only to the elements' durations. They can also be applied to the elements' amplitudes.
Here's an example similar to the last few, where both the durations are changing for elements 1 and 3, and the amplitudes are changing for elements 0 and 2:
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 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 periods(4) # element 3: duration in samples -500 # amplitude
Here's the plot of the transformations:
Make these changes to your datafile and hear what it sounds like.