| Copyright | (c) Hans Hoglund 2012 |
|---|---|
| License | BSD-style |
| Maintainer | hans@hanshoglund.se |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
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 where Source
Instances
decibel :: HasAmplitude a => a -> Decibel Source
bel :: HasAmplitude a => a -> Bel Source