
The problem here is, the PLAY statement is really intended for playing music. A better bet would be the SOUND statement, which gives you much finer control over the generated sounds.
It's relatively easy to generate sirens, wolf whistles, and similar effects using SOUND. It probably wouldn't be too hard to make something that sounds vaguely like clapping. Bells are liable to be tricky!
There used to be a fair amount of source code for this sort of thing floating around. Let me see what I can dig up.
------------------
Tom Hanlin
PowerBASIC Staff
Leave a comment: