<Cabbage>
form caption("Sphere"), size(300, 200)
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -m0d
</CsOptions>
<CsInstruments>
sr 	= 	44100 
ksmps 	= 	32
nchnls 	= 	2
0dbfs	=	1 

instr SPHERE
	aEnv linen .1, .01, p3, 0.01		;amp env, low amp to avoid distortion..
	iIndex = p5				;index is passed as p5		
	SChannel sprintf "freq%d", iIndex	;construct unique channel name 

	kFreqScale chnget SChannel		;get freq info from Unity
	a1 oscili aEnv, p4*kFreqScale		;set oscillator, 
	outs a1, a1				;output signal

endin  

</CsInstruments>
<CsScore>
f0 z
</CsScore>
</CsoundSynthesizer>
