/*
sgran:
0 start time of group
1 duration of group
2 amplitude
3 beginning grain rate
4 ending grain rate
amount of variation in rate: (percentage of grain rate)
5-8 beg: lo, average, hi, tightness (0-1, is 0-100%)
9-12 end: lo, average, hi, tightness (0-1, is 0-100%)
average duration:
13-16 starting lo, average, hi, tightness
17-20 ending lo, average, hi, tightness
location:
21-24 starting lo, average, hi, tightness
25-28 ending lo, average, hi, tightness
pitch band AS:
29-32 starting lo, average, hi, tightness
if p29 < 0, noise is the input
33-36 ending lo, average, hi, tightness
input type 0=AS 1=FM 2=SAM
* * *
functions: (stt variation changes are linear)
1 grain envelope
shape of change:
2 grain density
3 grain duration
4 grain location
AS-band
5 shape of change: frequency (usually linear for all shapes)
6 waveform
FM
5 shape of change: carrier frequency
6 shape of change: c:m ratio
7 shape of change: mi
*/
load("sgran")
output("ttt.snd")
makegen(1, 7, 1000, 0, 500, 1, 500, 0)
makegen(2, 7, 1000, 0, 50, 1, 950, 0)
makegen(3, 7, 1000, 1, 400, 0.1, 600, 0.4)
makegen(4, 7, 1000, 0, 400, 0.1, 600, 0.9)
makegen(5, 7, 1000, 0, 1000, 1)
makegen(6, 10, 1000, 1, 0.1, 0.3)
makegen(7, 7, 1000, 1, 1000, 0)
sgran(0, 3.5, 3000, 0.1, 0.005,
0, 0.5, 0.9, 0.2,
0.9, 0.5, 0.1, 0.7,
0.9, 0.2, 0.9, 0.5,
0.9, 0.5, 0.1, 0.7,
0.1, 0.7, 0.9, 0.2,
0.5, 0.9, 0.2, 0.9,
200, 900, 500, 0.1,
2000, 1000, 1500, 0.5)