Monday, April 15

SOUND

The sound command is used to generate sound through the speaker.
Syntax
SOUND freq. duration
Where ,
freq.  : The desired frequency in hertz (Cycles per second) 
duration : The desired duration in clock ticks.

  • freq. is a numeric expression within the range of 37 to 32,767.
  • clock ticks occurs 18.2 times per second.
  • duration must be expressed within the range of 0 to 65,535.
Example 23
To create random sounds of short duaration
250 SOUND RND * 1000+37,2
260 GOTO 250  

No comments:

Post a Comment