Util
object Util
This is a helper object containing utility functions for common math operations and constants
This is a helper object containing utility functions for common math operations and constants
class Object
trait Matchable
class Any
Value members
Concrete methods
Linear-to-Decibel conversion
Linear-to-Decibel conversion
- Value Params
- linear
volume linear
- Returns
volume in decibals, such that linearToDB( 2.0 ) returns c. +6
Decibel-to-Linear conversion.
Decibel-to-Linear conversion.
- Value Params
- dB
volume in decibels
- Returns
volume linear, such that dBToLinear( -6 ) returns c. 0.5
Calculates the logarithm with base 2.
Calculates the logarithm with base 2.
- Value Params
- value
the input value
- Returns
the log2 of the value