Packagecom.noteflight.standingwave2.utils
Classpublic class AudioUtils
InheritanceAudioUtils Inheritance Object



Public Methods
 MethodDefined By
  
concaveUnipolar(parameter:Number):Number
[static] Compute a normalized concave unipolar control signal going from +1 to 0 as the input goes from 0 to +1;
AudioUtils
  
decibelsToFactor(dB:Number):Number
[static] Convert a gain in decibels to a pure proportional factor.
AudioUtils
  
factorToDecibels(gain:Number):Number
[static] Convert a pure proportional factor to a gain in decibels.
AudioUtils
  
[static] Obtain an IRandomAccessSource for a given audio source by caching it if necessary.
AudioUtils
Public Constants
 ConstantDefined By
  DECIBELS_PER_DECADE : Number = 20.0
[static] The base 10 exponent multiplier for decibels.
AudioUtils
  MINIMUM_CONTROL : Number = 0.0078125
[static] The smallest parametric control signal.
AudioUtils
  MINIMUM_CONTROL_LN : Number
[static] The natural log of the gain of an inaudible sound.
AudioUtils
  MINIMUM_SIGNAL : Number = 1.52587890625E-5
[static] The smallest audible signal strength.
AudioUtils
  ZERO_GAIN_DECIBELS : Number
[static] The decibel gain at which a sound becomes inaudible at 16 bit sample size.
AudioUtils
Method Detail
concaveUnipolar()method
public static function concaveUnipolar(parameter:Number):Number

Compute a normalized concave unipolar control signal going from +1 to 0 as the input goes from 0 to +1;

Parameters

parameter:Number

Returns
Number
decibelsToFactor()method 
public static function decibelsToFactor(dB:Number):Number

Convert a gain in decibels to a pure proportional factor.

Parameters

dB:Number

Returns
Number
factorToDecibels()method 
public static function factorToDecibels(gain:Number):Number

Convert a pure proportional factor to a gain in decibels.

Parameters

gain:Number

Returns
Number
toRandomAccessSource()method 
public static function toRandomAccessSource(source:IAudioSource):IRandomAccessSource

Obtain an IRandomAccessSource for a given audio source by caching it if necessary.

Parameters

source:IAudioSource

Returns
IRandomAccessSource
Constant Detail
DECIBELS_PER_DECADEConstant
public static const DECIBELS_PER_DECADE:Number = 20.0

The base 10 exponent multiplier for decibels.

MINIMUM_CONTROLConstant 
public static const MINIMUM_CONTROL:Number = 0.0078125

The smallest parametric control signal.

MINIMUM_CONTROL_LNConstant 
public static const MINIMUM_CONTROL_LN:Number

The natural log of the gain of an inaudible sound.

MINIMUM_SIGNALConstant 
public static const MINIMUM_SIGNAL:Number = 1.52587890625E-5

The smallest audible signal strength.

ZERO_GAIN_DECIBELSConstant 
public static const ZERO_GAIN_DECIBELS:Number

The decibel gain at which a sound becomes inaudible at 16 bit sample size.