saxasm 0 Newbie Poster

Is there any reasonably simple code that will do the same thing as the Beep function but for ubuntu? I'd very much like being able to save the music to disk too, but that's not necessary.