Reading that comment I heard That Sound from the BBC Micro manual that they used to demonstrate the ENVELOPE command, the one with the rising and falling sequences of tones. I probably haven't typed that example in since I was in primary school, probably P7.
I'll probably have to go and find an emulator now, and try it out again.