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

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

Music.Time.Time

Description

 

Synopsis

Documentation

data TimeT Source

This type represents absolute time in seconds since the start time. Note that time can be negative, representing events occuring before the start time. The start time is usually the the beginning of the musical performance.

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 .-..

toTimeT :: Real a => a -> TimeTSource