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

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

Music.Time.Delayed

Contents

Description

 

Synopsis

Delayed type

data Delayed a Source

Delayed represents a value with an offset in time.

A delayed value has a known position, but no duration.

Placing a value inside Delayed does not make it invariant under stretch, as the offset of a delayed value may be stretched with respect to the origin. However, in contrast to a note the duration is not stretched.

Instances

Construction

delayed :: Iso (Time, a) (Time, b) (Delayed a) (Delayed b)Source

View a delayed value as a pair of a the original value and a delay time.

Inspecting delayed values

delayedValue :: (Transformable a, Transformable b) => Lens (Delayed a) (Delayed b) a bSource

View a delayed value as a pair of the original value and the transformation (and vice versa).