public class FuzzboxEffect
extends java.lang.Object
Constructor and Description |
---|
FuzzboxEffect(float gain,
int threshold) |
Modifier and Type | Method and Description |
---|---|
short[] |
process(short[] input)
Allows user to distort the audio signal (by forcing the signal to clip) and also adjust the volume of the input
sample to compensate for the lower output level.
|
void |
setGain(float vol)
Sets the volume or 'gain' level.
|
void |
setThreshold(int thresh)
Sets the maximum acceptable threshold level for the amplitude of values in the array.
|
public void setGain(float vol)
vol
- volume level. This value should be less than one in order to decreases the volume. A value more than one
increases the volumepublic void setThreshold(int thresh)
thresh
- threshold value for distortion. Decreasing the threshold of acceptable values results in MORE
distortionpublic short[] process(short[] input)
input
- short array containing the input data to be manipulated by algorithm