< score for ex3-1 : audio-rate amplitude modulation
< audio waveform functions 
*f1 0 1024 10 1.;             < sine wave
*f2 0 1024 10 0 1. .3 0 .15;  < more complex wave, harmonics 2,3,5
< control functions for change in amplitude modulation % {p12}
*f10 0 65 7  0  64  1. ;      < linear change between p9 &amp; p10
*f11 0 65 5  .01  64  1.;  < exponential pyramid change between p9 &amp; p10
*f12 0 65 7  0  32  1.  32  0; < linear pyramid  {p9 to p10 to p9}
*f13 0 65 5  .01  32  1.  32  .01;  < exponential pyramid  {p9 to p10 to p9}

i1 0 0 4;            < 4 output notes
p3 4;                     <start  times
du .95;
p4 no c4;                 <pitch
p5 10000;                 <amplitude
p6 .2;                    <attack time
p7 .5;                    <decay time
p8 nu 1./ 1.4 / .255/ 3.3;  <ratio of modulating frequency to p4
p9 nu .05/ .05 ;             <1st % of a.m.
p10 nu .95/ .95;             <2nd % of a.m.
p11 nu 10/ 11 / 12/ 13 ;    <function number for change in a.m. %
p12 nu 1//  2 // ;          <function number for modulating oscillator
end;

