PhaseVocoder
JavaScript is disabled on your browser.
br.usp.ime.dspbenchmarking.algorithms
Class PhaseVocoder
- java.lang.Object
-
- br.usp.ime.dspbenchmarking.algorithms.DspAlgorithm
-
- br.usp.ime.dspbenchmarking.algorithms.PhaseVocoder
-
public class PhaseVocoder extends DspAlgorithm
ATTENTION: This class is currently not used. This is on of the reasons why is is not properly documented.
-
-
Field Summary
Fields Modifier and Type Field and Description private double[]
deltak
private FFT
fft
private double[]
ind
private double[]
last_mag
private double[]
last_phase
private double[]
mag
private double[]
phase
private static double
TWOPI
-
Fields inherited from class br.usp.ime.dspbenchmarking.algorithms.DspAlgorithm
blockSize, parameter1, sampleRate
-
-
Constructor Summary
Constructors Constructor and Description PhaseVocoder(int sRate, int bSize)
-
Method Summary
Methods Modifier and Type Method and Description private void
Analysis(double[] real, double[] imag)
private void
FFT(double[] real, double[] imag, boolean flagInvert)
java.lang.String
getAlgorithmName()
private double
modulo2pi(double x)
void
perform(double[] buffer)
This method should be implemented by all DSP algorithms.private double[]
Synthesis(double[] real, double[] imag)
-
Methods inherited from class br.usp.ime.dspbenchmarking.algorithms.DspAlgorithm
getBlockSize, getParameter1, getSampleRate, setBlockSize, setParams
-
-
-
-
Field Detail
-
mag
private double[] mag
-
last_mag
private double[] last_mag
-
phase
private double[] phase
-
last_phase
private double[] last_phase
-
ind
private double[] ind
-
deltak
private double[] deltak
-
fft
private FFT fft
-
TWOPI
private static final double TWOPI
- See Also:
- Constant Field Values
-
-
Method Detail
-
perform
public void perform(double[] buffer)
Description copied from class:DspAlgorithm
This method should be implemented by all DSP algorithms. It is the actual perform function that works over a buffer to modify the audio signal.- Specified by:
perform
in classDspAlgorithm
-
Analysis
private void Analysis(double[] real, double[] imag)
-
Synthesis
private double[] Synthesis(double[] real, double[] imag)
-
FFT
private void FFT(double[] real, double[] imag, boolean flagInvert)
-
modulo2pi
private double modulo2pi(double x)
-
getAlgorithmName
public java.lang.String getAlgorithmName()
- Specified by:
getAlgorithmName
in classDspAlgorithm
- Returns:
- The name of the algorithm.
-
-