; Bruce A. Maxwell
; January 2015
;
; An example of a simple oscillator making three chords
;

<CsoundSynthesizer> 
 
<CsOptions> 
-g -W -A -o 3chords.aif 
</CsOptions> 
 
<CsInstruments> 
	instr	1 
a1	oscil	p4, p5, 1 
	out	a1 
	endin 
</CsInstruments> 
 
<CsScore> 
; function table 1
;       index   start   samples GEN     max amplitude
f	1	0	8192	10	1 

; Note	Instr	Start	Dur	Amp	Freq
i       1       0       1        8000   440 
i       1       0       1       10000   330 
i       1       0       1        4000   660 
i       1       0       1        2000   220 
i       1       1       1        2000   400 
i       1       1       1        1000   600 
i       1       1       1        2000   200 
i       1       1       1        2000   100 
i       1       2       1        6000   160
i       1       2       1        4000   320
i       1       2       1        8000   80
i       1       2       1        6000   40
e
</CsScore> 
 
</CsoundSynthesizer> 
