PhaseVocoder
JavaScript is disabled on your browser.

br.usp.ime.dspbenchmarking.algorithms

Class 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.
    • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • PhaseVocoder

        public PhaseVocoder(int sRate,
                    int bSize)
    • 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 class DspAlgorithm
      • 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 class DspAlgorithm
        Returns:
        The name of the algorithm.