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

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

Option Speed 8

v1 = 500
v2 = 1
Label Loop
	v1 = v1 + v2
	If v1 > 600 Or v1 < 500
		v2 = -v2
	EndIf
	Slot(2) = v1	'<-- Frequency
Goto Loop

'WATCH Slot(1)
'WATCH Slot(2)
'WATCH Slot(3)
'WATCH v1
'WATCH v2
'EXEC Slot(2) = 0
