SOUND

New in Sketch v1.5

An update to SOUND uses a single command to play repeated beeps.

TEMPO keyword for SOUND/SPEAKER

Quick way to add repeated beeps
Equivalent to “blink” for SOUND
New optional keyword – TEMPO

SET SOUND 440 TEMPO 2 TIME 2

2 beeps per second for 2 seconds: total 4 beeps
The value for TEMPO can range from 0 to 10

Code
Sample:

SET SOUND 440 TEMPO 2 TIME 5

SET SPEAKER 1 880 TEMPO 3 TIME 4

 

SET SOUND 400 TIME 5 TEMPO 0

is equivalent to

SET SOUND 400 TIME 5

Both commands will play the tone for 5 seconds without any breaks.