Saving waveform data to a file (standard version)
Purpose. Generates waveform data (sine, square, ...) and saves them
to a file.
This program uses AudioSystem.write()
to write the file.
java OscillatorFile [
the waveform to play. One of sine, sqaure, triangle and sawtooth. Default: sine.
the frequency of the signal to create. Default: 1000 Hz.
the sample rate to use. Default: 44.1 kHz.
the amplitude of the generated signal. May range from 0.0 to 1.0. 1.0 means a full-scale wave. Default: 0.7.
the name of the audio file to store the resulting
Full-scale waves can lead to clipping. It currently not known
which component is responsible for this.