' For this example start the AudioGenerator app
' and set AudioGenerator Slots to 1, 2, 3, -1

Slot(1) = 1		'<-- Waveform
Slot(3) = 800	'<-- Volume

Option Speed 8

Label Loop
	
	v1 = Sin(ElapsedTime) + 1
	
	Slot(2) = v1 * 500 '<-- Frequency
	
Goto Loop

'WATCH Slot(2)
'WATCH v1
'EXEC Slot(2) = 0
