Safe Haskell | Safe-Inferred |
---|
The SC3
duration model.
Durational
class Durational d whereSource
Values that have duration.
occ
is the interval from the start through to the end of the
current event, ie. the time span the event occupies.
delta
is the interval from the start of the current event to the
start of the next sequential event.
fwd
is the interval from the start of the current event to the
start of the next parallel event.
Dur
Variant of the SC3
Duration
model.
delta (defaultDur {dur = 2,stretch = 2}) == 4 occ defaultDur == 0.8 let d = defaultDur {fwd' = Just 0} in (delta d,fwd d) == (1,0)
Dur | |
|
Default Dur
value, equal to one second.
delta defaultDur == 1