Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Pc = (Note, Alteration)
- pc_pp :: Pc -> [Char]
- data Extension
- extension_tbl :: Num n => [(Extension, (String, n))]
- extension_dat :: Num n => Extension -> (String, n)
- extension_pp :: Extension -> String
- extension_to_pc :: Num n => Extension -> n
- data Chord_Type
- is_suspended :: Chord_Type -> Bool
- chord_type_tbl :: Num n => [(Chord_Type, ([String], [n]))]
- chord_type_dat :: Num n => Chord_Type -> ([String], [n])
- chord_type_pp :: Chord_Type -> String
- chord_type_pcset :: Num n => Chord_Type -> [n]
- data Chord = Chord Pc Chord_Type (Maybe Extension) (Maybe Pc)
- chord_pcset :: Chord -> (Maybe Int, [Int])
- bass_pp :: Pc -> String
- chord_pp :: Chord -> String
- m_error :: String -> Maybe a -> a
- p_pc :: P Pc
- p_mode_m :: P Mode
- p_chord_type :: P Chord_Type
- p_extension :: P Extension
- p_bass :: P (Maybe Pc)
- p_chord :: P Chord
- parse_chord :: String -> Chord
Documentation
type Pc = (Note, Alteration) Source #
extension_pp :: Extension -> String Source #
extension_to_pc :: Num n => Extension -> n Source #
data Chord_Type Source #
Instances
Show Chord_Type Source # | |
Defined in Music.Theory.Pitch.Chord showsPrec :: Int -> Chord_Type -> ShowS # show :: Chord_Type -> String # showList :: [Chord_Type] -> ShowS # | |
Eq Chord_Type Source # | |
Defined in Music.Theory.Pitch.Chord (==) :: Chord_Type -> Chord_Type -> Bool # (/=) :: Chord_Type -> Chord_Type -> Bool # |
is_suspended :: Chord_Type -> Bool Source #
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.
chord_type_dat :: Num n => Chord_Type -> ([String], [n]) Source #
chord_type_pp :: Chord_Type -> String Source #
chord_type_pcset :: Num n => Chord_Type -> [n] Source #
p_extension :: P Extension 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