public static class Oscillator.FrequencyModulatedOscillator extends Object implements Oscillator
Oscillator.DummyOscillator, Oscillator.FrequencyModulatedOscillator, Oscillator.NoiseOscillator, Oscillator.SawOscillator, Oscillator.SineOscillator, Oscillator.SquareOscillator
Constructor and Description |
---|
FrequencyModulatedOscillator() |
Modifier and Type | Method and Description |
---|---|
Synthesizer.FMOptions |
getOptions()
Returns the options for the particular oscillator type.
|
SampleChunk |
getSampleChunk(int length,
double time,
double freq,
int gain,
AudioFormat format) |
public FrequencyModulatedOscillator()
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.FMOptions getOptions()
Oscillator
getOptions
in interface Oscillator