public class Sinusoid extends AudioData
format, listeners, selectionEnd, selectionStart, shorts
Constructor and Description |
---|
Sinusoid(double frequency,
double phase,
double amplitude,
double duration)
Creates a 16bit, linear SIGNED_PCM, little endian, sinusoid with a sample rate of 8kHz.
|
addChangeListener, fireStateChanged, getAudioData, getAudioFormat, removeChangeListener, setAudioData
public Sinusoid(double frequency, double phase, double amplitude, double duration)
frequency
- cycles per secondphase
- phase offset in radiansamplitude
- amplitudeduration
- duration in seconds