SOUND

Synopsis
SOUND soundlist
Description

Plays a sequence of tones on the PC speaker.

The soundlist input must be a list of pairs. Each pair specifies a frequency (in hertz) and duration (clock ticks). The larger the frequency the higher the pitch. The larger the duration the longer the sound plays for.

FMSLogo is unresponsive to user control while it plays a sound vector.

Example
SOUND [1000 200]
MAKE "zing []
REPEAT 50 [MAKE "zing LPUT REPCOUNT*10 :zing MAKE "zing LPUT 100 :zing]
SOUND :zing

SourceForge.net Logo