hmt-0.20: Haskell Music Theory
Safe HaskellSafe-Inferred
LanguageHaskell2010

Music.Theory.Pitch.Chord

Synopsis

Documentation

pc_pp :: Pc -> [Char] Source #

data Extension Source #

D = dominant, M = major

Constructors

D7 
M7 

Instances

Instances details
Show Extension Source # 
Instance details

Defined in Music.Theory.Pitch.Chord

Eq Extension Source # 
Instance details

Defined in Music.Theory.Pitch.Chord

chord_type_tbl :: Num n => [(Chord_Type, ([String], [n]))] Source #

Names and pc-sets for chord types. The name used here is in the first position, alternates follow.

data Chord Source #

Instances

Instances details
Show Chord Source # 
Instance details

Defined in Music.Theory.Pitch.Chord

Methods

showsPrec :: Int -> Chord -> ShowS #

show :: Chord -> String #

showList :: [Chord] -> ShowS #

m_error :: String -> Maybe a -> a Source #

parse_chord :: String -> Chord Source #

Parse chord.

let ch = words "CmM7 C#o EbM7 Fo7 Gx/D C/E GØ/F Bbsus4/C E7sus2"
let c = map parse_chord ch
map chord_pp c == ch
map chord_pcset c