| abcsound | index /cygdrive/d/jk/abcsound/abcsound.py |
Convert (enhanced) abc notation to a Csound score.
| Modules | ||||||
| ||||||
| Classes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Functions | ||
| ||
| Data | ||
| BOW_DIRECTIONS = 'uv' CHORD_MARK = '"' CLOSE_TIE = ')' DECORATOR_END = '}' DECORATOR_START = '{' DIGITS = '0123456789' MEASURE_BAR = '|' NLET_MARK = '(' NOTE_CONTENT = "ABCDEFGabcdefg_^.~0123456789',>/" NOTE_INITIALS = 'ABCDEFGabcdefg_^.~' NOTE_NAMES = 'ABCDEFGabcdefg' NOTE_NAMES_HI = 'abcdefg' NOTE_NAMES_LOW = 'ABCDEFG' OCT_DOWN_MARK = ',' OCT_UP_MARK = "'" OPEN_TIE_OR_NLET = '(' ORNAMENT_MARK = '~' REPEAT_MARK = ':' REST_CONTENT = '0123456789/>' REST_MARK = 'z' SINGLE_DECORATION = '~' SLUR_END = ')' SLUR_START = '(' TIE_MARK = '-' allElementClasses = [<class abcsound.CsoundElement at 0x7fef55cc>, <class abcsound.VoicesElement at 0x7fef55fc>, <class abcsound.InstrumentElement at 0x7fef562c>, <class abcsound.AbcDefaultDurationElement at 0x7fef565c>, <class abcsound.AbcMeterElement at 0x7fef568c>, <class abcsound.AbcTempoElement at 0x7fef56bc>, <class abcsound.AbcMetaElement at 0x7fef56ec>, <class abcsound.AbcMeasureBar at 0x7fef571c>, <class abcsound.AbcLineEnd at 0x7fef574c>, <class abcsound.AbcRest at 0x7fef577c>, <class abcsound.AbcNote at 0x7fef57ac>, <class abcsound.AbcRepeatEnd at 0x7fef57dc>, <class abcsound.AbcRepeat at 0x7fef580c>, <class abcsound.AbcNlet at 0x7fef583c>, <class abcsound.AbcSlurStart at 0x7fef586c>, <class abcsound.AbcSlurEnd at 0x7fef589c>, <class abcsound.AbcTie at 0x7fef58cc>, <class abcsound.AbcDecoration at 0x7fef58fc>, <class abcsound.AbcChord at 0x7fef592c>, <class abcsound.AbcBowDirection at 0x7fef595c>] allLines = [] details = ['analyze'] noteFreqs = {12: 256.0, 'a': 430.53896457590599, 'b': 483.2636480463882, 'bb': 456.14014364783441, 'c': 256.0, 'c#': 271.22255215360002, 'd': 287.35028436215737, 'd#': 304.43702143268371, 'e': 322.53978876176836, 'f': 341.71900265253851, ...} semitoneMult = 1.0594630943500001 testLines = ['K:G', 'R:jig', 'instr Oboe csound=104 p4=amp p5=pitch p6=13.2 p7=99', 'voices Oboe', ':a~buc (dvef)::"Am"g (3 zdz {whoohoo!}b ^c\'/2._D2,(e\'\'/2|1z/2A-B-C-D)zC/2|2z/2A-B-D-D)z/2C:|', ':abc def:||:gab cde|[1defabc|[2abcdef:|', ':ABC DEF:||:GAB CDE|[1DEFABC|[2ABCDEF:|', ':a~buc (dvef)::"Am"g (3 zdz {whoohoo!}b ^c\'/2._D2,(e\'\'/2|1z/2A-B-C-D)zC/2|2z/2A-B-D-D)z/2C:|', ':abc def:||:gab cde|[1defabc|[2abcdef:|', ':ABC DEF:||:GAB CDE|[1DEFABC|[2ABCDEF:|'] | ||