' =====================================================================
'     Name: Audio_Display_1.txt                 Date: 17 Febrauary 2020
'    Autor: Leonardo DE PALO
'    Scope: AUDIO STEREO TESTS, MICROPHONE & DISPLAY
' Hardware: WXM POC
' =====================================================================

' ----------------------------------------- LOAD APPS
Load ..\Theremino_AudioGenerator\Theremino_AudioGenerator.exe
Load ..\Theremino_AudioInput\Theremino_AudioInput.exe
Load ..\Theremino_Tools\Theremino_SlotViewer.exe
Load ..\Theremino_Tools\Theremino_SignalScope1.exe
'Load ..\Theremino_Tools\Theremino_SignalScope2.exe
'Load ..\Theremino_MicroVideo\Theremino_MicroVideo.exe
'Load ..\Theremino_Tools\Theremino_WaveGenerator.exe

' ----------------------------------------- BUTTONS
Button 1 Text SPEAKER
Button 2 Text HEARSET
Button 3 Text 1Kz ON
Button 5 Text LEFT LOW
Button 6 Text LEFT HIGH
Button 7 Text RIGHT LOW
Button 8 Text RIGHT HIGH

Button 10 Text RED
Button 11 Text GREEN
Button 12 Text BLU

Button 14 Text MonaLisa
Button 15 Text LOGO

Button 16 Text "CLOSE ALL"

' ----------------------------------------- COLOR FOR BUTTONS
Button 1 Color NavajoWhite
Button 2 Color NavajoWhite
Button 3 Color Gold

Button 5 Color PaleGoldenrod
Button 6 Color Gold
Button 7 Color PaleGoldenrod
Button 8 Color Gold

Button 10 Color Red
Button 11 Color Green
Button 12 Color Blue

Button 14 Color Orange
Button 15 Color YellowGreen
Button 16 Color Yellow

Variable Numeric Slot_Wave
Variable Numeric Slot_Freq
Variable Numeric Slot_dB
Variable Numeric Slot_Pan
Variable Numeric Slot_Meter
Variable Numeric SoundDuration
Variable Numeric Slot_RunScope

Slot_Wave       = 101              ' type of waveform
Slot_Freq       = 102              ' frequency
Slot_dB         = 103              ' signal level in dB
Slot_Pan        = 104              ' left/right selecion
Slot_Meter      = 105              ' microphone
Slot_RunScope   = 999              ' Start/Stop Signal Scope

SoundDuration  = 1

Window MinSize

Stop

Label 1Kz ON
	Button 3 Color Flashing9 Gold DarkGreen
'Slot Slot_RunScope = 1000         ' Start Signal Scope
	Slot Slot_Freq = 1000          ' frequency
	Slot Slot_dB = 1000            ' Sine wave OFF
	Slot Slot_Pan = 500            ' Both speakers
'Slot Slot_RunScope = 0            ' Stop Signal Scope
	Button 3 Text "1Kz OFF"
Return

Label 1Kz OFF
    'Slot Slot_RunScope = 1000       ' Start Signal Scope
	Slot Slot_dB = 0                ' Sine wave OFF
	Slot Slot_Pan = 500               ' Both speakers
    'Wait Seconds SoundDuration
    'Slot Slot_RunScope =
	'Stop Signal Scope
	Button 3 Text "1Kz ON"
	Button 3 Color Gold
Return


Label LEFT LOW
	Window MinSize
	Slot Slot_RunScope = 1000             ' Start Signal Scope
	Slot Slot_dB = 0                ' Sine wave OFF
	Slot Slot_Pan = 0               ' Left channel
	Wait Seconds SoundDuration
	Slot Slot_RunScope = 0                ' Stop Signal Scope
	Window Sizable
Return

Label LEFT HIGH
	Window MinSize
	Slot Slot_RunScope = 1000        ' Start Signal Scope
	Slot Slot_dB = 1000              ' Sine wave ON MAX
	Slot Slot_Pan = 0                ' Left channel
	Wait Seconds SoundDuration
	Slot Slot_dB = 0                 ' Sine wave OFF
	Slot Slot_RunScope = 0           ' Stop Signal Scope
	Window Sizable
Return

Label RIGHT LOW
	Window MinSize
	Slot Slot_RunScope = 1000             ' Start Signal Scope
	Slot Slot_dB = 0                 ' Sine wave OFF
	Slot Slot_Pan = 1000             ' Left channel
	Wait Seconds SoundDuration
	Slot Slot_RunScope = 0                ' Stop Signal Scope
	Window Sizable
Return

Label RIGHT HIGH
	Window MinSize
	Slot Slot_RunScope = 1000             ' Start Signal Scope
	Slot Slot_dB = 1000               ' Sine wave ON MAX
	Slot Slot_Pan = 1000             ' Left channel
	Wait Seconds SoundDuration
	Slot Slot_dB = 0                 ' Sine wave OFF
	Slot Slot_RunScope = 0                ' Stop Signal Scope
	Window Sizable
Return

Slot_RunScope = 999

Label RED
	Load Red.jpg
	Window FullScreen     ' Window to full screen
	Wait Seconds 1
	'Window Sizable
	Load Hide             ' Return to the normal program view.
Return

Label GREEN
	Load Green.jpg
	Window FullScreen     ' Window to full screen
	Wait Seconds 1
	Window Sizable
	Load Hide             ' Return to the normal program view.
Return

Label BLU
	Load DarkBlue.jpg
	Window FullScreen     ' Window to full screen
	Wait Seconds 1
	Window Sizable
	Load Hide             ' Return to the normal program view.
Return

Label LOGO
	Load _Logo SWINEQ green.png
	Window FullScreen     ' Window to full screen
	Wait Seconds 2
	'Window Sizable
	Load Hide             ' Return to the normal program view.
Return

Label MonaLisa
	Load MonaLisa.jpg
	Window FullScreen         ' Window to full screen
	Wait Seconds 3
	'Window Sizable
	Load Hide                 ' Return to the normal program view.
Return

Label CLOSE ALL
	Load CloseApps
Return

Label EventStop
	Window Sizable
End


'WATCH v1
'WATCH SLevelLow_SPEAKER_L
'EXEC SLevelLow_SPEAKER_L
