Portability | non-portable (TF,GNTD) |
---|---|
Stability | experimental |
Maintainer | hans@hanshoglund.se |
Safe Haskell | None |
Documentation
Note that you should use .-.
and .+^
to convert between time and
duration. To refer to time zero (the beginning of the music), use
origin
.
Time type
type Time = Point DurationSource
This type represents absolute time in seconds since start
. Note that time can be
negative, representing events occuring before the start time.
Time forms an affine space with durations as the underlying vector space,
that is, we can add a time to a duration to get a new time using .+^
,
take the difference of two times to get a duration using .-.
.
Duration type
This type represents relative time in seconds.
Enum Duration | |
Eq Duration | |
Fractional Time | |
Fractional Duration | |
Num Time | |
Num Duration | |
Ord Duration | |
Real Duration | |
RealFrac Duration | |
Show Duration | |
VectorSpace Duration | |
AdditiveGroup Duration | |
Delayable Time | |
Stretchable Time | |
Stretchable Duration | |
HasOnset Time | |
HasDuration Duration | |
HasBehavior ((->) Time) | |
Delayable (Time -> a) | |
Delayable (Time, a) | |
Stretchable (Time -> a) | |
Stretchable (Duration -> a) | |
Stretchable (Time, a) | |
Stretchable (Duration, a) | |
HasOnset (Time, a) | |
HasDuration (Duration, a) | |
Delayable (Time, Duration, a) | |
Stretchable (Time, Duration, a) | |
HasOffset (Time, Duration, a) | |
HasOnset (Time, Duration, a) | |
HasDuration (Time, Duration, a) |
Behavior class
class HasBehavior f whereSource
Identities
The global start time, which usually means the the beginning of the musical performance.
This is a synonym for origin
.