| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | hans@hanshoglund.se |
| Safe Haskell | None |
Music.Dynamics.Absolute
Description
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.
Constructors
| Amplitude | |
Fields | |
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
Instances
decibel :: HasAmplitude a => a -> DecibelSource
bel :: HasAmplitude a => a -> BelSource