Portability | portable |
---|---|
Stability | experimental |
Maintainer | hans@hanshoglund.se |
Safe Haskell | None |
Provides overloaded pitch literals.
- newtype Frequency = Frequency {}
- newtype Octaves = Octaves {}
- newtype Fifths = Fifths {}
- newtype Cents = Cents {}
- class HasFrequence a where
- cents :: HasFrequence a => a -> Cents
- fifths :: HasFrequence a => a -> Fifths
- octaves :: HasFrequence a => a -> Octaves
Documentation
Frequency in Hertz
Logarithmic pitch reprentation.
convert (f * 2) = convert f + Octaves 1
Logarithmic pitch reprentation.
convert (f * 2) = convert f + Octave 1
Logarithmic pitch reprentation.
convert (f * 2) = convert f + Cent 1200
class HasFrequence a whereSource
cents :: HasFrequence a => a -> CentsSource
fifths :: HasFrequence a => a -> FifthsSource
octaves :: HasFrequence a => a -> OctavesSource