def test_inversions(self): # non-standard notation but I wanted a somewhat clean-ish way to describe inversions r = roman("C4 major") assert r.do("I'") == chord(["E4", "G4", "C5"]) assert r.do("I''") == chord(["G4", "C5", "E5"]) assert r.do("I':power") == chord(["G4", "C5"])
def test_inversions(self): # non-standard notation but I wanted a somewhat clean-ish way to describe inversions r = roman("C4 major") assert r.do("I'") == chord(["E4","G4","C5"]) assert r.do("I''") == chord(["G4","C5","E5"]) assert r.do("I':power") == chord(["G4","C5"])
def test_shortcuts(self): r = roman("C4 major") assert r.do("IV") == chord("F4 major")