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

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

Music.Score.Meta

Contents

Description

Provides meta-information.

Each score supports an unlimited number of Reactive meta-values.

This is more or less based on Diagrams styles, which is in turn based on XMonad.

Synopsis

Attributes

data Attribute Source

An existential wrapper type to hold attributes.

wrapAttr :: IsAttribute a => a -> AttributeSource

Wrap up an attribute.

Meta-values

data Meta Source

Instances

Monoid Meta

The empty meta contains no attributes; composition of metas is a union of attributes; if the two metas have attributes of the same type they are combined according to their semigroup structure.

Semigroup Meta 
Delayable Meta 
Stretchable Meta 
HasMeta Meta 

addMetaNote :: forall a b. (IsAttribute a, HasMeta b, HasPart' b) => Note a -> b -> bSource

addGlobalMetaNote :: forall a b. (IsAttribute a, HasMeta b) => Note a -> b -> bSource

runMeta :: forall a b. (HasPart' a, IsAttribute b) => Maybe a -> Meta -> Reactive bSource

class HasMeta a whereSource

Type class for things which have meta-information.

Methods

meta :: Lens' a MetaSource

Apply meta-information by combining it (on the left) with the existing meta-information.

Instances