AdditiveSynthesisSine
JavaScript is disabled on your browser.

br.usp.ime.dspbenchmarking.algorithms

Class AdditiveSynthesisSine



  • public class AdditiveSynthesisSine
    extends StressAlgorithm
    Additive Synthesis using Java's Math.sin() method. It uses a number of oscillators equal to the stressParameter.
    • Field Detail

      • lastInd

        private int lastInd
      • coefficient

        private float coefficient
    • Constructor Detail

      • AdditiveSynthesisSine

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

      • perform

        public void perform(double[] buffer)
        The perform method is
        Specified by:
        perform in class DspAlgorithm
      • 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
      • setBlockSize

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

        public java.lang.String getAlgorithmName()
        Specified by:
        getAlgorithmName in class DspAlgorithm
        Returns:
        The name of the algorithm.