;Function 1 uses the GEN10 subroutine to compute a sine wave ;Function 2 uses the GEN10 subroutine to compute the first sixteen partials of a sawtooth wave ;Function 3 uses the GEN20 subroutine to compute a Hanning window for use as a grain envelope ;Function 4 uses the GEN01 subroutine to read in an aiff audio file ;Function 5 uses the GEN07 subroutine to compute a linear triangle function for AM ;Function 6 uses the GEN07 subroutine to compute a square function for AM ;Function 7 uses the GEN01 subroutine to read in an wave audio file f1 0 4096 10 1 f2 0 4096 10 1 .5 .333 .25 .2 .166 .142 .125 .111 .1 .09 .083 .076 .071 .066 .062 f3 0 4097 20 2 1 f4 0 0 1 "scream.aiff" 0 4 0 f5 0 513 7 0 256 1 256 0 f6 0 513 7 0 10 1 246 1 10 0 246 0 f7 0 0 1 "ghost.wav" 0 4 0 ; inst start duration kamp kcps icps f imeth left right ;============================================================== i 101 0 1 7000 200 540 2 1 1 0 i 101 1 1 7000 250 540 2 1 0 1 i 101 2 1 7000 300 540 2 1 1 0 i 101 3 1 8000 300 540 2 1 0 1 i 101 4 1 8000 350 540 2 1 1 0 i 101 5 1 8000 400 540 2 1 0 1 i 101 6 1 9000 400 540 2 1 1 0 i 101 7 1 9000 450 540 2 1 0 1 i 101 8 1 9000 500 540 2 1 1 0 i 101 9 1 10000 500 540 2 1 0 1 i 101 10 1 10000 550 540 2 1 1 0 i 101 11 1 10000 600 540 2 1 0 1 i 101 12 1 11000 600 540 2 1 1 0 i 101 13 1 11000 650 540 2 1 0 1 i 101 14 1 11000 700 540 2 1 1 0 i 101 15 1 12000 700 540 2 1 0 1 i 101 16 1 12000 750 540 2 1 1 0 i 101 17 1 12000 800 540 2 1 0 1 ; ins start dur amp freq c m index f ;============================================================= i 102 3.5 2 12000 217 1 0.5 10 5 i 102 5 1 10000 540 1 2 3 6 i 102 10 2 13000 110 1 3 6 6 i 102 12.5 1.5 10000 130.8 1 2.001 8 6 i 102 13 2.5 5000 329.6 1 3.003 5 5 i 102 11.5 1.5 8000 490.6 1 1.005 3 6 ;ins strt dur amp frq f atk rel #harm1 #harm2 ;============================================================================ i 103 17 3 10000 440 1 1 1 30 2 i 103 20.5 5 10000 220 1 2 .1 2 30 i 103 22 5 10000 110 1 .01 .01 20 6 i 103 23 17 10000 130.8 1 .01 .01 1 15 i 103 25 15 10000 440 1 5 .5 3 11 i 103 30 10 10000 311.1 1 8 1 33 2 ; inst start duration Amp Freq f ;================================================ i 104 40 31 10000 440 7 ; inst start duration Amp Freq f ;================================================ i 104 71 2 12000 440 4