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

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

Music.Time.Duration

Contents

Description

 

Synopsis

Documentation

The HasDuration class

class HasDuration a whereSource

Class of values that have a duration.

Law Duration

 _duration x = (offset x .-. onset x)

Methods

_duration :: a -> DurationSource

Absolute duration

duration :: (Transformable a, HasDuration a) => Lens' a DurationSource

Access the duration.

stretchTo :: (Transformable a, HasDuration a) => Duration -> a -> aSource

Stretch a value to have the given duration.