haskore-0.2.0.5: The Haskore Computer Music System

Safe HaskellSafe-Inferred

Haskore.Basic.Duration

Synopsis

Documentation

type T = DurSource

type Ratio = TSource

type Offset = RationalSource

(%+) :: Integer -> Integer -> TSource

fromRatio :: Rational -> TSource

toRatio :: T -> RationalSource

toNumber :: Fractional a => T -> aSource

scale :: Ratio -> T -> TSource

add :: Offset -> T -> TSource

divide :: T -> T -> IntegerSource

divisible :: T -> T -> BoolSource

gcd :: T -> T -> TSource

nameDictionary :: Map T StringSource

toString :: T -> StringSource

Converts 1%4 to "qn" and so on.