public static class Oscillator.DummyOscillator extends Object implements Oscillator
Oscillator.DummyOscillator, Oscillator.FrequencyModulatedOscillator, Oscillator.NoiseOscillator, Oscillator.SawOscillator, Oscillator.SineOscillator, Oscillator.SquareOscillator
Constructor and Description |
---|
DummyOscillator() |
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 DummyOscillator()
public SampleChunk getSampleChunk(int length, double time, double freq, int gain, AudioFormat format)
getSampleChunk
in interface Oscillator
length
- 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()
Oscillator
getOptions
in interface Oscillator