music-score-1.9.0: 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.Duration

Contents

Description

 

Synopsis

Documentation

The HasDuration class

class HasDuration a where Source

Class of values that have a duration.

For any type that is also Transformable, you should ensure that:

(transform s x)^.duration = transform s (x^.duration)

Methods

_duration :: a -> Duration Source

Return the duration of a value.

Absolute duration

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

Access the duration.

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

Stretch a value to have the given duration.