haskore-0.0.5.1: The Haskore Computer Music System
Source code
Contents
Index
Haskore.Basic.Duration
Synopsis
type
T
=
Dur
type
Ratio
=
T
type
Offset
=
Rational
(%+)
::
Integer
->
Integer
->
T
fromRatio
::
Rational
->
T
toRatio
::
T
->
Rational
toNumber
::
Fractional
a =>
T
-> a
scale
::
Ratio
->
T
->
T
add
::
Offset
->
T
->
T
divide
::
T
->
T
->
Integer
divisible
::
T
->
T
->
Bool
gcd
::
T
->
T
->
T
doubleDotted
::
T
->
T
wn
::
T
dhn
::
T
ddqn
::
T
nameDictionary
::
Map
T
String
toString
::
T
->
String
propToString
::
Bool
Documentation
type
T
=
Dur
Source
type
Ratio
=
T
Source
type
Offset
=
Rational
Source
(%+)
::
Integer
->
Integer
->
T
Source
fromRatio
::
Rational
->
T
Source
toRatio
::
T
->
Rational
Source
toNumber
::
Fractional
a =>
T
-> a
Source
scale
::
Ratio
->
T
->
T
Source
add
::
Offset
->
T
->
T
Source
divide
::
T
->
T
->
Integer
Source
divisible
::
T
->
T
->
Bool
Source
gcd
::
T
->
T
->
T
Source
doubleDotted
::
T
->
T
Source
wn
::
T
Source
dhn
::
T
Source
ddqn
::
T
Source
nameDictionary
::
Map
T
String
Source
toString
::
T
->
String
Source
Converts
1%4
to
"qn"
and so on.
propToString
::
Bool
Source
Produced by
Haddock
version 2.3.0