music-score-1.6: Musical score and part representation.

Portabilitynon-portable (TF,GNTD)
Stabilityexperimental
Maintainerhans@hanshoglund.se
Safe HaskellNone

Music.Time.Behavior

Description

Behaviors, or time-varying values.

TODO integrate better in the library

Synopsis

Documentation

constant :: a -> Behavior aSource

A constant (non-varying) behavior.

Identical to behavior . const but creates more efficient behaviors.

behavior :: (Time -> a) -> Behavior aSource

Create a behavior from function of (absolute) time.

You should pass a function defined for the whole range, including negative time.

varying :: (Duration -> a) -> Behavior aSource

Create a behaviour from a function of (relative) duration focused on sunit.

You should pass a function defined for the whole range, including negative durations.

varyingIn :: Span -> (Duration -> a) -> Behavior aSource

Create a behaviour from a function of (relative) duration focused on the given span.

You should pass a function defined for the whole range, including negative durations.