| Safe Haskell | Safe-Inferred |
|---|
Sound.SC3.Lang.Control.Duration
Contents
Description
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.
Instances
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 | |
Fields
| |
Default Dur value, equal to one second.
delta defaultDur == 1