I am trying to play audio clips by coding the numerical frequencies, tones and durations of the various notes. After searching the web, I have only found information on how to play existing audio files.

Is there a way to define the frequency, tone, and time duration of a note in Java, and then have my computer play it?