music-pitch-literal-1.3: Overloaded pitch literals.

Portabilityportable
Stabilityexperimental
Maintainerhans@hanshoglund.se
Safe HaskellSafe-Inferred

Music.Pitch.Literal

Description

Provides overloaded pitch literals.

Synopsis

Documentation

newtype PitchL Source

The PitchL types is used to encode a pitch literal.

It is defined as (class, alteration, octave), where

  • class is a pitch class number in [0,6], starting from C.
  • alteration is the number of semitones, i.e. 0 is natural, 1 for sharp 2 for double sharp, -1 for flat and -2 for double flat. Alteration is in Maybe because some pitch representations differ between explicit and explicit accidentals, i.e. a diatonic pitch type may assume (0,Nothing,4) to mean C sharp rather than C.
  • octave is octave number in scientific pitch notation.

Middle C is represented by the pitch literal (0, Nothing, 4).

Constructors

PitchL 

Fields

getPitchL :: (Int, Maybe Double, Int)
 

c'' :: IsPitch a => aSource

d'' :: IsPitch a => aSource

e'' :: IsPitch a => aSource

f'' :: IsPitch a => aSource

g'' :: IsPitch a => aSource

a'' :: IsPitch a => aSource

b'' :: IsPitch a => aSource

cs' :: IsPitch a => aSource

ds' :: IsPitch a => aSource

es' :: IsPitch a => aSource

fs' :: IsPitch a => aSource

gs' :: IsPitch a => aSource

as' :: IsPitch a => aSource

bs' :: IsPitch a => aSource

c' :: IsPitch a => aSource

d' :: IsPitch a => aSource

e' :: IsPitch a => aSource

f' :: IsPitch a => aSource

g' :: IsPitch a => aSource

a' :: IsPitch a => aSource

b' :: IsPitch a => aSource

cb' :: IsPitch a => aSource

db' :: IsPitch a => aSource

eb' :: IsPitch a => aSource

fb' :: IsPitch a => aSource

gb' :: IsPitch a => aSource

ab' :: IsPitch a => aSource

bb' :: IsPitch a => aSource

cs :: IsPitch a => aSource

ds :: IsPitch a => aSource

es :: IsPitch a => aSource

fs :: IsPitch a => aSource

gs :: IsPitch a => aSource

as :: IsPitch a => aSource

bs :: IsPitch a => aSource

c :: IsPitch a => aSource

d :: IsPitch a => aSource

e :: IsPitch a => aSource

f :: IsPitch a => aSource

g :: IsPitch a => aSource

a :: IsPitch a => aSource

b :: IsPitch a => aSource

cb :: IsPitch a => aSource

db :: IsPitch a => aSource

eb :: IsPitch a => aSource

fb :: IsPitch a => aSource

gb :: IsPitch a => aSource

ab :: IsPitch a => aSource

bb :: IsPitch a => aSource

cs_ :: IsPitch a => aSource

ds_ :: IsPitch a => aSource

es_ :: IsPitch a => aSource

fs_ :: IsPitch a => aSource

gs_ :: IsPitch a => aSource

as_ :: IsPitch a => aSource

bs_ :: IsPitch a => aSource

c_ :: IsPitch a => aSource

d_ :: IsPitch a => aSource

e_ :: IsPitch a => aSource

f_ :: IsPitch a => aSource

g_ :: IsPitch a => aSource

a_ :: IsPitch a => aSource

b_ :: IsPitch a => aSource

cb_ :: IsPitch a => aSource

db_ :: IsPitch a => aSource

eb_ :: IsPitch a => aSource

fb_ :: IsPitch a => aSource

gb_ :: IsPitch a => aSource

ab_ :: IsPitch a => aSource

bb_ :: IsPitch a => aSource

c__ :: IsPitch a => aSource

d__ :: IsPitch a => aSource

e__ :: IsPitch a => aSource

f__ :: IsPitch a => aSource

g__ :: IsPitch a => aSource

a__ :: IsPitch a => aSource

b__ :: IsPitch a => aSource