You seem to be interested in sound/music things. To compose/play music with SmileBASIC, you should learn MML. MML stands for Music Macro Language. You can see the explanations of MML with pressing help button on the string "MML". And to make waveform, I recommend you to study about Frequency Modulation Synthesizer.