public static class Oscillator.SquareOscillator extends Object implements Oscillator
Oscillator.DummyOscillator, Oscillator.FrequencyModulatedOscillator, Oscillator.NoiseOscillator, Oscillator.SawOscillator, Oscillator.SineOscillator, Oscillator.SquareOscillator| Constructor and Description | 
|---|
SquareOscillator()  | 
| Modifier and Type | Method and Description | 
|---|---|
Synthesizer.OscillatorOptions | 
getOptions()
Returns the options for the particular oscillator type. 
 | 
SampleChunk | 
getSampleChunk(int length,
              double time,
              double freq,
              int gain,
              AudioFormat format)  | 
public SquareOscillator()
public SampleChunk getSampleChunk(int length, double time, double freq, int gain, AudioFormat format)
getSampleChunk in interface Oscillatorlength - The length of the sample chunk to generatetime - The time at which the sample chunk should startfreq - The frequency of wave to generategain - The gain of the wave to generate (0 <= gain <= MAX_INT)format - The format of the sample chunkpublic Synthesizer.OscillatorOptions getOptions()
OscillatorgetOptions in interface Oscillator