Closed yuma-m closed 3 years ago
Create QualityManager class to overwrite default quality components #58.
QualityManager
from pychord import Chord, QualityManager c1 = Chord("C11") print(c1.components()) # ['C', 'G', 'Bb', 'D', 'F'] quality_manager = QualityManager() quality_manager.set_quality("11", (0, 4, 7, 10, 14, 17)) c2 = Chord("C11") print(c2.components()) # ['C', 'E', 'G', 'Bb', 'D', 'F'] # will not affect existing chord instances print(c1.components()) # ['C', 'G', 'Bb', 'D', 'F']
Create
QualityManager
class to overwrite default quality components #58.