hmt-0.16: Haskell Music Theory

Safe HaskellSafe
LanguageHaskell98

Music.Theory.Unicode

Contents

Description

Synopsis

Non-music

non_breaking_hypen :: Char Source #

Unicode non breaking hypen character.

non_breaking_hypen == '‑'

non_breaking_space :: Char Source #

Unicode non breaking space character.

non_breaking_space == ' '

Music

accidentals :: Unicode_Table Source #

UNICODE accidental symbols.

let r = "♭♮♯𝄪𝄫𝄬𝄭𝄮𝄯𝄰𝄱𝄲𝄳" in map (toEnum . fst) accidentals == r

notes :: Unicode_Table Source #

UNICODE note duration symbols.

let r = "𝅜𝅝𝅗𝅥𝅘𝅥𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲" in map (toEnum . fst) notes == r

rests :: Unicode_Table Source #

UNICODE rest symbols.

let r = "𝄻𝄼𝄽𝄾𝄿𝅀𝅁𝅂" in map (toEnum . fst) rests == r

clefs :: Unicode_Table Source #

UNICODE clef symbols.

let r = "𝄞𝄟𝄠𝄡𝄢𝄣𝄤𝄥𝄦" in map (toEnum . fst) clefs == r

noteheads :: Unicode_Table Source #

UNICODE notehead symbols.

let r = "𝅃𝅄𝅅𝅆𝅇𝅈𝅉𝅊𝅋𝅌𝅍𝅎𝅏𝅐𝅑𝅒𝅓𝅔𝅕𝅖𝅗𝅘𝅙𝅚𝅛" in map (toEnum . fst) noteheads == r

Blocks

Table

unicode_data_table_read :: FilePath -> IO Unicode_Table Source #

http://unicode.org/Public/8.0.0/ucd/UnicodeData.txt

let fn = "/home/rohan/data/unicode.org/Public/8.0.0/ucd/UnicodeData.txt"
tbl <- unicode_data_table_read fn
length tbl == 29215