spiffyscore
Check-in [6dcdb96a02]
Not logged in
Overview
SHA1 Hash:6dcdb96a02795827f78ff38ecbc724f9e51092ff
Date: 2010-11-16 16:13:25
User: spiffytech@gmail.com
Comment:Improved lexing of roman numerals, including support for minor chord recognition
Timelines: family | ancestors | descendants | both | ply
Other Links: files | file ages | manifest
Tags And Properties
Changes
hide diffs unified diffs patch

Modified parse.py from [911b321ada6f1434] to [1dcfc5e85f2ba336].

11 "OCTAVE", 11 "OCTAVE", 12 "CHORD_TYPE", 12 "CHORD_TYPE", 13 ) 13 ) 14 14 15 t_ignore = " |" 15 t_ignore = " |" 16 16 17 #t_BASENOTE = r"[A-Ga-g]" 17 #t_BASENOTE = r"[A-Ga-g]" 18 t_BASENOTE = r"I?V?I*[^ ]" | 18 t_BASENOTE = r"I+V?|VI*|i+v?|vi*" 19 t_ACCIDENTAL = r"\^{1,2}|_{1,2}|=" 19 t_ACCIDENTAL = r"\^{1,2}|_{1,2}|=" 20 t_REST = r"z" 20 t_REST = r"z" 21 t_OCTAVE = r"'+|,+" 21 t_OCTAVE = r"'+|,+" 22 t_CHORD_TYPE = r"m|7|m7|0|o|\+|mb5|sus|sus4|maj7|mmaj7|7sus4|dim|dim7|7b5|m7b5|6 22 t_CHORD_TYPE = r"m|7|m7|0|o|\+|mb5|sus|sus4|maj7|mmaj7|7sus4|dim|dim7|7b5|m7b5|6 23 23 24 def t_NOTE_LENGTH(t): 24 def t_NOTE_LENGTH(t): 25 r"/?\d+" 25 r"/?\d+"