Friday, August 12, 2022

πŸ†• _SNDWAVE and _TOUCHDEVICE

_SNDWAVE

The _SNDWAVE statement sets the soundwave pattern for all subsequent sounds produced by the SOUND  and BEEP  statements.

Syntax: _SNDWAVE waveform

waveformA literal string, a string variable, or the result of a string expression. Can be any one of the following values: sine (system default)squaresawtoothtriangle.

 _TOUCHDEVICE

The _TOUCHDEVICE function returns, TRUE (-1) or FALSE (0), whether or not the user's device is a touchscreen device. The result of this function can be used to decide how to get input from the user:

  • if the user has a physical keyboard, the program can get keyboard input from either or both of:
    • The Console Keyboard Input Functions 
    • The "Popup Box" Functions 
  • if the user has a touchscreen keyboard, the progam can get "virtual keyboard" input from:
    • The "Popup Box" Functions 
  • (touching the console window has the same effect as mouse-clicks)

Syntax: _TOUCHDEVICE

Return value: TRUE (-1) or FALSE (0)


SOUND TESTER:



No comments:

Post a Comment

πŸ–₯ Fan Dance

This is a port and mod of a SpecBAS program by ZXDunny. Run the program View the source code And, a "less is more?" version: Run t...