The sound commands on the Spectrum are not easy to use from BASIC, so I have tried using them from machine code.
This program offers the writer a whole range of readymade sounds that he can use in his programs with a single USR command. The first part offers the options of hearing one or all the sounds already defined. As there are 97 sounds, this means there is a whole variety to choose from. There are whistles, shots, burps, helicopters, machine guns and throaty coughs all available and ready to be put into your program. All that is needed to set up the machine code, build up the selection of the sounds you need and then select the save option.
This saves both the sound data, for the sounds you selected, and the code to replay the sound. As you save the sound you can write down the call addresses of the particular sounds then you insert these at the correct position in your program.
It would have been nice to be able to relocate the code, but it works very well.