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

Contents

Description

 

Synopsis

Documentation

The HasDuration class

class HasDuration a where Source

Class of values that have a duration.

Law Duration

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

Minimal complete definition

Nothing

Methods

_duration :: a -> Duration Source

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.