'// Knight Rider industries voice modulator v.01
'// By John Onyon a.k.a Unseen Machine
Mic_End '// End the recording
Mic_Save "TmpSnd.wav"
Recording% = 0
PlayBack% = -1
'// Record audio @ 3600 samples per second
Recording% = -1
Mic_Start 3600
Left! = -(l! / 3600) * 5
Right! = Left!
Middle! = Left! * 2
' PRINT l!, r!, Left!, Right!, Middle!
PlayBack% = 0
Left = 0
Right! = 0
Middle! = 0
'// Draw the light bars
x% = 320
y% = 130
DrawLightBar x%, y%, Clr
y% = y% + 12
x% = x% + 65
SUB DrawLightBar
(x
, y
, clr
) '##############################################
w = 50
h = 8
CIRCLE (x
+ 50, y
+ 4), 4, clr
LINE (x
, y
)-(x
+ w
, y
+ h
), clr
, BF
'/////////
'// Library Declerations
SUB SNDRAW_Save
(RawSnd%
, BYVAL NumSamples&
, BYVAL SampleRate&
, BYVAL Channels&
, FileName$
)