A Chord object represents a single chord in an input sequence to the
parser.
This was the original way of processing input to the parser and still
lurks around. However, a better representation is provided by jazzparser.data.db_mirrors.Chord, which is specifically
designed to replicate the data structure in the corpus database.
Instances of this class can be converted to a db-mirror chord using to_db_mirror. This class is now used mainly for
processing textual input.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__init__(self,
root_numeral='C',
type='',
additions=None,
roman=False)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|
|
|
TYPE_SYMBOLS = {1: '', 2: 'm', 3: 'M7', 4: 'o7', 5: '%7', 6: '...
|
|
|
SEVEN_TYPES = [4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 18]
|
|
|
SEVEN_IMPLIED_ADDITIONS = ['9', 'b9', 'b10', '13', '+9', '+11']
|
|
|
IMPLIED_SEVEN_MAPPINGS = {1: 10, 2: 11, 6: 12, 7: 5, 8: 13, 14...
|