|
1.0: Final Release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ChorusControl
is an interface for manipulating
the settings of an audio effect called chorus and its special case flanger.
The chorus makes the sound source sound like a group of similar sound sources playing the same sound. This makes the sound "richer".
A special case of a chorus is a flanger: two similar sources are played so close together in time that they sound like one, but instead with a "wooshing" effect or with a sound similar to the sound of a jet plane passing overhead.
In the API, there are several preset modes available for the chorus. The modes at least available for the chorus are:
The minimum tunable parameters for the chorus (and the flanger) are average delay and delay modulation rate and depth.
EffectControl
Field Summary |
Fields inherited from interface javax.microedition.amms.control.EffectControl |
SCOPE_LIVE_AND_RECORD, SCOPE_LIVE_ONLY, SCOPE_RECORD_ONLY |
Method Summary | |
int |
getAverageDelay()
Gets the average delay. |
int |
getMaxAverageDelay()
Gets the maximum supported average delay. |
int |
getMaxModulationDepth()
Gets the maximum supported delay modulation depth. |
int |
getMaxModulationRate()
Gets the maximum supported delay modulation rate. |
int |
getMinModulationRate()
Gets the minimum supported delay modulation rate. |
int |
getModulationDepth()
Gets the current delay modulation depth. |
int |
getModulationRate()
Gets the delay modulation rate. |
int |
getWetLevel()
Gets the effect's wet level. |
void |
setAverageDelay(int delay)
Sets the average delay. |
void |
setModulationDepth(int percentage)
Sets the delay modulation depth as a percentage of the average delay. |
void |
setModulationRate(int rate)
Sets the delay modulation rate. |
int |
setWetLevel(int level)
Sets the effect's wet level. |
Methods inherited from interface javax.microedition.amms.control.EffectControl |
getPreset, getPresetNames, getScope, isEnabled, isEnforced, setEnabled, setEnforced, setPreset, setScope |
Method Detail |
public int setWetLevel(int level)
The effect wet level affects how much of the media is passed via the effect in percents. 100 means that all the media is processed in the effect and 0 means that no processing is done at all and all the media is bypassed. Values between 0 and 100 affect the wet/dry ratio of the processing in the accuracy that the system supports. The effect is considered to be "wetter" when the effect wet level rises.
level
- the new effect wet level for the effect in percents
java.lang.IllegalArgumentException
- if level < 0 or level > 100public int getWetLevel()
public void setModulationRate(int rate)
rate
- the new delay modulation rate in mHz
java.lang.IllegalArgumentException
- if the given rate
< getMinModulationRate() or the given rate > getMaxModulationRate()public int getModulationRate()
public int getMinModulationRate()
public int getMaxModulationRate()
public void setModulationDepth(int percentage)
percentage
- the new delay modulation amplitude (peak-to-zero depth) in percents of the average delay
java.lang.IllegalArgumentException
- if the given depth < 0 or the given depth > getMaxModulationDepth()public int getModulationDepth()
public int getMaxModulationDepth()
public void setAverageDelay(int delay)
delay
- the new average delay in microseconds
java.lang.IllegalArgumentException
- if the given delay < 0 or
the given delay > getMaxAverageDelay()public int getAverageDelay()
public int getMaxAverageDelay()
|
1.0: Final Release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |