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

Copyright(c) Hans Hoglund 2012-2014
LicenseBSD-style
Maintainerhans@hanshoglund.se
Stabilityexperimental
Portabilitynon-portable (TF,GNTD)
Safe HaskellNone
LanguageHaskell2010

Music.Time.Event

Contents

Description

 

Synopsis

Event type

data Event a Source

Instances

Construction

event :: Iso (Span, a) (Span, b) (Event a) (Event b) Source

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

eventee :: (Transformable a, Transformable b) => Lens (Event a) (Event b) a b Source

View the value in the event.

spanEvent :: Iso' Span (Event ()) Source

Event as a span with a trivial value.

triple :: Iso (Event a) (Event b) (Time, Duration, a) (Time, Duration, b) Source

View a event as a (time, duration, value) triple.