 < The grain sizes created in p3 change very short  {.03} to longer {.2}, and
 < some of the speech fragments & repetitions become intelligible near the end.
 < p8 : The skip times start near the END of the original soundfile and move
 < backwards to the beginning f the source soundfile
 < The pitch ascends continuously, beginning an octave below the original
 < and ending 2 and a half octaves higher than the original 

*f1 0 524288 -1 "/sflib/x/voicetest.wav" 0 0 0;  

instr gran 0 12;   < read in soundfile grains for 12 beats {12 seconds}
p3  mx 12. .03 .2;
  < duty factor:  determines overlap of grains
  < normal range is between 100.02 and 100.2 {producing .02-.2 second overlaps}
du  100.06;  < grains overlap by 60 milliseconds
   < p4 cross-fade time for both fade-in & fade-out ;
   <   p4  normally = c. 1/2 duty factor fraction { 1/2 the grain overlap time}
p4  .06; < Somewhat unusual : fade times = overlap time, resulting in amplitude
         <  attenuation & separation between grains
         < between grains

   < p5 = output amplitude : raw amp {10.1-32767} or multiplier {.001 - 10.}
       < default 0 = same amplitude as input soundfile
p5  mx .5 1000 25000/ 8.5 25000 20000/ 3. 20000 1000; < creates an amplitude
    < rise, "steady state" and then decay

   < p6 = gen1 function number
p6  1;  < gen1 function for "voicetest"
   < p7 = length of soundfile to be used, in seconds {duration} OR # of samples
p7  7.269;   < duration of "voicetest" 

   < p8 = skip time into gen1 func : if positive p8  = skip time in seconds
      < if negative {between -.001 and -.999}, p8 = % of soundfile skipped
p8  mo 12  7.1 .001;  < read grains from end to beginning of source soundfile

   < p9 = pitch multiplier {default 0 = no pitch change}
p9  mx 12. .5 2.5;  < pitch rises, beginning an octave lower than original and
                    < ending 2.5 octaves above original
   < for stereo output only p10 = pan location {1. = hard left, 0 = hard right}
p10
  <  Added user p-fields: 
end;  <<< End of ### granvoice1 ### example score >>>
