Package wellen
Class InstrumentInternal
- java.lang.Object
-
- wellen.Instrument
-
- wellen.InstrumentInternal
-
- All Implemented Interfaces:
DSPNodeOutputSignal
- Direct Known Subclasses:
InstrumentInternalLibrary.BELL
,InstrumentInternalLibrary.FAT_LEAD
,InstrumentInternalLibrary.HI_HAT
,InstrumentInternalLibrary.KICK_DRUM
,InstrumentInternalLibrary.SAMPLER
public class InstrumentInternal extends Instrument implements DSPNodeOutputSignal
implementation ofInstrument
for the internal tone engine.
-
-
Field Summary
Fields Modifier and Type Field Description static float
DEFAULT_FREQUENCY
static int
DEFAULT_WAVETABLE_SIZE
-
Constructor Summary
Constructors Constructor Description InstrumentInternal(int pID)
InstrumentInternal(int pID, int pSamplingRate)
InstrumentInternal(int pID, int pSamplingRate, int pWavetableSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
get_amplitude()
float
get_amplitude_LFO_amplitude()
float
get_amplitude_LFO_frequency()
int
get_channels()
float
get_filter_frequency()
float
get_filter_resonance()
float
get_frequency()
float
get_frequency_LFO_amplitude()
float
get_frequency_LFO_frequency()
int
get_oscillator_type()
Wavetable
get_VCO()
void
note_off()
void
note_on(int pNote, int pVelocity)
Signal
output_signal()
void
pitch_bend(float pFreqOffset)
void
set_amplitude(float pAmplitude)
void
set_amplitude_LFO_amplitude(float pAmplitude)
void
set_amplitude_LFO_frequency(float pFrequency)
void
set_attack(float pAttack)
void
set_channels(int pNumChannels)
void
set_decay(float pDecay)
void
set_filter_frequency(float pFrequency)
void
set_filter_resonance(float pResonance)
void
set_frequency(float pFrequency)
void
set_frequency_LFO_amplitude(float pAmplitude)
void
set_frequency_LFO_frequency(float pFrequency)
void
set_oscillator_type(int pOscillator)
void
set_release(float pRelease)
void
set_sustain(float pSustain)
-
Methods inherited from class wellen.Instrument
enable_additional_oscillator, enable_ADSR, enable_amplitude_LFO, enable_frequency_LFO, enable_LPF, get_additional_oscillator_amplitude, get_additional_oscillator_frequency, get_additional_oscillator_type, get_attack, get_decay, get_pan, get_release, get_sustain, ID, is_playing, set_additional_oscillator_amplitude, set_additional_oscillator_frequency, set_additional_oscillator_type, set_pan
-
-
-
-
Field Detail
-
DEFAULT_FREQUENCY
public static final float DEFAULT_FREQUENCY
- See Also:
- Constant Field Values
-
DEFAULT_WAVETABLE_SIZE
public static final int DEFAULT_WAVETABLE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
output_signal
public Signal output_signal()
- Specified by:
output_signal
in interfaceDSPNodeOutputSignal
-
set_attack
public void set_attack(float pAttack)
- Overrides:
set_attack
in classInstrument
- Parameters:
pAttack
- time parameter defining the time it takes for the set_amp to reach maximum level.
-
set_decay
public void set_decay(float pDecay)
- Overrides:
set_decay
in classInstrument
- Parameters:
pDecay
- time parameter defining the time it takes to go from maximum to get_sustain level.
-
set_sustain
public void set_sustain(float pSustain)
- Overrides:
set_sustain
in classInstrument
- Parameters:
pSustain
- level parameter defining the level hold while note is still played.
-
set_release
public void set_release(float pRelease)
- Overrides:
set_release
in classInstrument
- Parameters:
pRelease
- time parameter defining the time it takes for the set_amp to reach zero after note is off.
-
get_oscillator_type
public int get_oscillator_type()
- Specified by:
get_oscillator_type
in classInstrument
-
set_oscillator_type
public void set_oscillator_type(int pOscillator)
- Specified by:
set_oscillator_type
in classInstrument
-
get_frequency_LFO_amplitude
public float get_frequency_LFO_amplitude()
- Specified by:
get_frequency_LFO_amplitude
in classInstrument
-
set_frequency_LFO_amplitude
public void set_frequency_LFO_amplitude(float pAmplitude)
- Specified by:
set_frequency_LFO_amplitude
in classInstrument
-
get_frequency_LFO_frequency
public float get_frequency_LFO_frequency()
- Specified by:
get_frequency_LFO_frequency
in classInstrument
-
set_frequency_LFO_frequency
public void set_frequency_LFO_frequency(float pFrequency)
- Specified by:
set_frequency_LFO_frequency
in classInstrument
-
get_amplitude_LFO_amplitude
public float get_amplitude_LFO_amplitude()
- Specified by:
get_amplitude_LFO_amplitude
in classInstrument
-
set_amplitude_LFO_amplitude
public void set_amplitude_LFO_amplitude(float pAmplitude)
- Specified by:
set_amplitude_LFO_amplitude
in classInstrument
-
get_amplitude_LFO_frequency
public float get_amplitude_LFO_frequency()
- Specified by:
get_amplitude_LFO_frequency
in classInstrument
-
set_amplitude_LFO_frequency
public void set_amplitude_LFO_frequency(float pFrequency)
- Specified by:
set_amplitude_LFO_frequency
in classInstrument
-
get_filter_resonance
public float get_filter_resonance()
- Specified by:
get_filter_resonance
in classInstrument
-
set_filter_resonance
public void set_filter_resonance(float pResonance)
- Specified by:
set_filter_resonance
in classInstrument
-
get_filter_frequency
public float get_filter_frequency()
- Specified by:
get_filter_frequency
in classInstrument
-
set_filter_frequency
public void set_filter_frequency(float pFrequency)
- Specified by:
set_filter_frequency
in classInstrument
-
pitch_bend
public void pitch_bend(float pFreqOffset)
- Specified by:
pitch_bend
in classInstrument
-
get_amplitude
public float get_amplitude()
- Specified by:
get_amplitude
in classInstrument
-
set_amplitude
public void set_amplitude(float pAmplitude)
- Specified by:
set_amplitude
in classInstrument
-
get_frequency
public float get_frequency()
- Specified by:
get_frequency
in classInstrument
-
set_frequency
public void set_frequency(float pFrequency)
- Specified by:
set_frequency
in classInstrument
-
note_off
public void note_off()
- Specified by:
note_off
in classInstrument
-
note_on
public void note_on(int pNote, int pVelocity)
- Specified by:
note_on
in classInstrument
-
get_VCO
public Wavetable get_VCO()
-
get_channels
public int get_channels()
-
set_channels
public void set_channels(int pNumChannels)
-
-