public interface Oscillator
Modifier and Type | Interface and Description |
---|---|
static class |
Oscillator.DummyOscillator
Generates an empty sample chunk
|
static class |
Oscillator.FrequencyModulatedOscillator
Frequency modulation of wave types.
|
static class |
Oscillator.NoiseOscillator
White noise generator
|
static class |
Oscillator.SawOscillator
Oscillator that produces saw waves.
|
static class |
Oscillator.SineOscillator
Oscillator that produces pure sine waves.
|
static class |
Oscillator.SquareOscillator
Oscillator that produces pure square waves.
|
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) |
SampleChunk getSampleChunk(int length, double time, double freq, int gain, AudioFormat format)
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 chunkSynthesizer.OscillatorOptions getOptions()