| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
Sound.SC3.Lang.Control.Duration
Description
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.
Minimal complete definition
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)Constructors
| Dur | |
defaultDur :: Dur Source
Default Dur value, equal to one second.
delta defaultDur == 1