Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
The SC3
duration model.
Duration
There are three parts to a duration:
delta
is the logical or notated duration.
occ
is the sounding duration, the interval that a value
actually occupies in time. If occ
<
delta
there will be a
hole, if occ
>
delta
there will be an overlap.
fwd
is the forward duration, the interval to the start time of
the next value in the sequence, which may be parallel to the
current value. Ordinarily fwd
is either delta
or 0
.
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)
defaultDur :: Dur Source
Default Dur
value, equal to one second.
delta defaultDur == 1