I will start with the surprisingly versatile BEEP command.
2.10. Sound
BEEP
Produces a sound using the "beeper" sound engine.
USAGE
BEEP period[, volume]
PARAMETERS
period
- tone cycle period in samples [0 (off) to 320/160]
volume
- tone volume
[0 to 15, default: as set in system configuration]
NOTES
The maximum value for period depends on the flavor of Engine BASIC; it’s 320 for the gaming build, and 160 for the network build.
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
The following program will produce the classic Frogger jumping sound
1 b=25
10 FOR a=1 TO 25
12 b=b-1
14 PRINT b
20 BEEP b,4
30 WAIT 10
40 NEXT a
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
This next program lets you play with the tone and two durations to produce some really great noisy sounds.
10 CLS:SCREEN 4:FONT 2
20 bval=40:wa=5:wb=20:vol=3
30 BEEP bval,vol
40 GPRINT 0,0,"BEEP value Press a ",bval
50 GPRINT 0,10,"Wait 1 value Press s,x ",wa
60 GPRINT 0,20,"Wait 2 value Press d,c ",wb
70 GPRINT 0,30,"Sound Volume Press f,v ",vol
80 c$=INKEY$
90 IF c$="a" THEN bval=bval+1
100 IF c$="z" THEN bval=bval-1
110 IF c$="s" THEN wa=wa+10
120 IF c$="x" THEN wa=wa-10
130 IF c$="d" THEN wb=wb+10
140 IF c$="c" THEN wb=wb-10
150 IF c$="f" THEN vol=vol+1
160 IF c$="v" THEN vol=vol-1
170 IF wa<=0 THEN wa=0
180 IF wb<=0 THEN wb=0
190 IF vol<=0 THEN vol=0
195 IF vol>=15 THEN vol=15
200 WAIT wa
210 BEEP 0
220 WAIT wb
230 GOTO 30
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo