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

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

Music.Time.Time

Contents

Description

 

Synopsis

Documentation

Note that you should use .-. and .+^ to convert between time and duration. To refer to time zero (the beginning of the music), use origin.

Time type

type Time = Point DurationSource

This type represents absolute time in seconds since start. Note that time can be negative, representing events occuring before the start time.

Time forms an affine space with durations as the underlying vector space, that is, we can add a time to a duration to get a new time using .+^, take the difference of two times to get a duration using .-..

Duration type

Behavior class

class HasBehavior f whereSource

Methods

(?) :: f a -> Time -> aSource

Identities

start :: TimeSource

The global start time, which usually means the the beginning of the musical performance.

This is a synonym for origin.

stop :: TimeSource

The global end time, defined as start .+^ unit.

unit :: DurationSource

The unit duration.

Combinators