Class DSPUtils


  • public class DSPUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      DSPUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double getLevelInDB​(double linearLevel)  
      static void main​(java.lang.String[] args)  
      static double toLevelInDB​(double linearLevel)
      Get normalized amplitude level in dB
      static double toLinearLevel​(double dbLevel)  
      static double toOctaves​(double fq)  
      static double toOctaves​(double f1, double f2)  
      static double toPowerLevelInDB​(double linearLevel)
      Get normalized amplitude power level in dB
      static double toPowerLinearLevel​(double dbLevel)  
      • Methods inherited from class java.lang.Object

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

      • DSPUtils

        public DSPUtils()
    • Method Detail

      • toLevelInDB

        public static double toLevelInDB​(double linearLevel)
        Get normalized amplitude level in dB
        Parameters:
        linearLevel - a normalized positive linear level (1.0 corresponds to 0dB)
        Returns:
        level in dB
      • getLevelInDB

        public static double getLevelInDB​(double linearLevel)
      • toLinearLevel

        public static double toLinearLevel​(double dbLevel)
      • toPowerLevelInDB

        public static double toPowerLevelInDB​(double linearLevel)
        Get normalized amplitude power level in dB
        Parameters:
        linearLevel - a normalized positive linear level (1.0 corresponds to 0dB)
        Returns:
        power level in dB
      • toPowerLinearLevel

        public static double toPowerLinearLevel​(double dbLevel)
      • toOctaves

        public static double toOctaves​(double f1,
                                       double f2)
      • toOctaves

        public static double toOctaves​(double fq)
      • main

        public static void main​(java.lang.String[] args)