Portability | portable |
---|---|
Stability | experimental |
Maintainer | hans@hanshoglund.se |
Safe Haskell | None |
Absolute representation of loudness, or dynamics.
The canonical loudness representation is Amplitude
. For conversion, see HasAmplitude
.
- newtype Amplitude = Amplitude {}
- data Decibel
- data Bel
- class HasAmplitude a where
- decibel :: HasAmplitude a => a -> Decibel
- bel :: HasAmplitude a => a -> Bel
Documentation
Amplitude level, where 0
is silent and 1
is peak.
A logarithmic representation of amplitude such that
x * 10 = amplitude (decibel x + 10)
A logarithmic representation of amplitude such that
x * 10 = amplitude (bel x + 1)
class HasAmplitude a whereSource
decibel :: HasAmplitude a => a -> DecibelSource
bel :: HasAmplitude a => a -> BelSource