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

Portabilityportable
Stabilityexperimental
Maintainerhans@hanshoglund.se
Safe HaskellSafe-Inferred

Music.Dynamics.Literal

Description

Provides overloaded pitch literals.

Synopsis

Documentation

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 

class IsDynamics a whereSource