<info>
i is ex2-4
ECMC Csound Tutorial example ex2-4
</info>
<tk_interface>
</tk_interface>
<mono>
;  #############################################################
;  soundfile ex2-3, 2-4, 2-5 :         Eastman  Csound Tutorial
;  #############################################################

; control oscillator (k1) used to supply time envelope to audio oscillator
instr 1
k1 oscili p5, 1/p3, p6   ; p5 = amplitude, p6 = function number for envelope

a1 oscili k1, cpspch(p4),p7   ; p4 in pch notation, p7 = function number for
                              ; audio waveshape
out a1
endin


</mono>
<stereo>
</stereo>
<score>

                  SCORE-11, Version 1.4
Copyright (C) 1982, 1990, 1992, 1995 by Alexander R. Brinkman
     Eastman School of Music, University of Rochester

f52 0 65 7 0 32 1. 32 0
f62 0 65 5 .01 32 1. 32 .01
f21 0 65 5 .001 4 .8 10 1. 10 .7 40 .001
f22 0 65 5 .001 10 1. 10 .2 10 .8 10 .1 10 .6 14 .001
f11 0 512 10 1. .8 0 .6 0 .4 0 .2 
f12 0 512 10 1. 0 .33 0 .13 0 .07
f13 0 64 7 -1 32 -1 0 1. 32 1. 
f14 0 64 7 -1 30 -1 2 1. 30 1. 2 -1.
  i1 0.000 3.000 7.00 8000 52 11
  i1 3.000 3.000 7.00 8000 62 12
  i1 6.000 3.000 7.00 8000 21 13
  i1 9.000 3.000 7.00 8000 22 14
e
</score>
