music-dynamics-literal-1.9.0: Overloaded dynamics literals.

Copyright(c) Hans Hoglund 2012
LicenseBSD-style
Maintainerhans@hanshoglund.se
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Music.Dynamics.Literal

Contents

Description

Provides overloaded dynamic literals.

Synopsis

IsDynamics class

newtype DynamicsL Source

Dynamics literal.

First value is start value, second is end value.

  • (Just x, Nothing) is a constant dynamic of x
  • (Just x, Just y) is a dynamic varying from x to y
  • (Nothing, Just y) is a dynamic varying from the previous level to y
  • (Nothing, Nothing) is a dynamic varying from the previous level to the next.

For levels, we use -0.5 for mp, 0.5 for mf and add or remove one for each level. 0 is an unspecified middle level dynamic.

Constructors

DynamicsL 

Literal values

Standard dynamics

pp :: IsDynamics a => a Source

_p :: IsDynamics a => a Source

mp :: IsDynamics a => a Source

mf :: IsDynamics a => a Source

_f :: IsDynamics a => a Source

ff :: IsDynamics a => a Source

Other dynamics

fz :: IsDynamics a => a Source

fp :: IsDynamics a => a Source