public class PitchFilter extends SoundFilter
SAMPLE_SIZE_16_BIT, SAMPLE_SIZE_8_BIT
Constructor and Description |
---|
PitchFilter(float pitchMinValue,
float pitchMaxValue)
Creates an PitchFilter with the specified minimum and maximum relative original sound pitch (in percent)
|
Modifier and Type | Method and Description |
---|---|
void |
filter(byte[] samples,
int offset,
int length,
int sampleSizeInBits)
Filter do nothing, only AudioFormat was modified
|
AudioFormat |
getAudioFormat(AudioInputStream audioInputStream)
Apply coefficient to the original audio input format pitch
|
float |
getPitchMaxValue() |
float |
getPitchMinValue() |
void |
setPitchMaxValue(float pitchMaxValue)
set the pitch max value
|
void |
setPitchMinValue(float pitchMinValue)
ste the pitch min value
|
get16bitSample, get8bitSample, getRemainingSize, reset, set16bitSample, set8bitSample
public PitchFilter(float pitchMinValue, float pitchMaxValue)
pitchMinValue
- the pitch Min ValuepitchMaxValue
- the pitch Max Valuepublic void filter(byte[] samples, int offset, int length, int sampleSizeInBits)
filter
in class SoundFilter
samples
- the samplesoffset
- the offsetlength
- the lengthsampleSizeInBits
- the sample size in bitspublic AudioFormat getAudioFormat(AudioInputStream audioInputStream)
getAudioFormat
in class SoundFilter
audioInputStream
- the audio input streampublic float getPitchMinValue()
public void setPitchMinValue(float pitchMinValue)
pitchMinValue
- the pitch min valuepublic float getPitchMaxValue()
public void setPitchMaxValue(float pitchMaxValue)
pitchMaxValue
- the pitch max valueCopyright © 2018 City of Paris. All rights reserved.