public class PitchFilter extends SoundFilter
| 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, set8bitSamplepublic 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 SoundFiltersamples - the samplesoffset - the offsetlength - the lengthsampleSizeInBits - the sample size in bitspublic AudioFormat getAudioFormat(AudioInputStream audioInputStream)
getAudioFormat in class SoundFilteraudioInputStream - 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 © 2021 City of Paris. All rights reserved.