AdditiveSynthesisLookupTable
JavaScript is disabled on your browser.

br.usp.ime.dspbenchmarking.algorithms

Class AdditiveSynthesisLookupTable

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected abstract float lookup(float i)
      Subclasses should define the way the do the interpolation.
      private float modS(float y) 
      void perform(double[] buffer)
      The perform method executed sums a number of oscillators equal to the stressParameter.
      void setBlockSize(int bSize)
      Set the block size and update the coefficient.
      void setParams(double param1)
      When changing the parameter using the GUI, also update the number of oscillators used in calculation.
      void setStressParameter(int stressParam)
      Set the stress parameter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sine

        protected float[] sine
      • coefficient

        protected float coefficient
      • ind

        protected float[] ind
      • dt

        protected float dt
      • deltai

        protected float[] deltai
    • Constructor Detail

      • AdditiveSynthesisLookupTable

        public AdditiveSynthesisLookupTable(int sRate,
                                    int bSize,
                                    int stressParam)
    • Method Detail

      • perform

        public void perform(double[] buffer)
        The perform method executed sums a number of oscillators equal to the stressParameter.
        Specified by:
        perform in class DspAlgorithm
      • modS

        private float modS(float y)
        Parameters:
        y -
        Returns:
        y % S.
      • setStressParameter

        public void setStressParameter(int stressParam)
        Set the stress parameter.
        Overrides:
        setStressParameter in class StressAlgorithm
        Parameters:
        fSize -
      • setParams

        public void setParams(double param1)
        When changing the parameter using the GUI, also update the number of oscillators used in calculation.
        Overrides:
        setParams in class DspAlgorithm
      • lookup

        protected abstract float lookup(float i)
        Subclasses should define the way the do the interpolation.
        Parameters:
        i -
        Returns:
      • setBlockSize

        public void setBlockSize(int bSize)
        Set the block size and update the coefficient.
        Overrides:
        setBlockSize in class DspAlgorithm
        Parameters:
        bSize -