예제 #1
0
def test_diminished_7th():
    assert analyze(['a', 'c', 'e-', 'g-']) == {
        'A diminished 7th': 'ace-g-',
        'C diminished 7th': 'ce-g-a',
        'E- diminished 7th': 'e-g-ac',
        'G- diminished 7th': 'g-ace-'
    }
예제 #2
0
def test_augmented():
    assert analyze(['c', 'e', 'g+']) == {
        'C augmented': 'ceg+',
        'E augmented': 'eg+c',
        'G+ augmented': 'g+ce'
    }
예제 #3
0
def test_diminished():
    assert analyze(['b', 'd', 'f']) == {'B diminished': 'bdf'}
    assert analyze(['f', 'd', 'b']) == {'B diminished': 'bdf'}
    assert analyze(['d', 'f', 'b']) == {'B diminished': 'bdf'}
예제 #4
0
def test_minor():
    assert analyze(['e', 'g', 'b']) == {'E minor': 'egb'}
    assert analyze(['e', 'b', 'g']) == {'E minor': 'egb'}
    assert analyze(['g', 'b', 'e']) == {'E minor': 'egb'}
예제 #5
0
def test_simple_major():
    assert analyze(['a', 'c+', 'e']) == {'A major': 'ac+e'}
    assert analyze(['c', 'e', 'g']) == {'C major': 'ceg'}
    assert analyze(['c', 'g', 'e']) == {'C major': 'ceg'}
    assert analyze(['g', 'c', 'e']) == {'C major': 'ceg'}
    assert analyze(['c-', 'e-', 'g-']) == {'C- major': 'c-e-g-'}
예제 #6
0
def test_major_thirteenth():
    assert analyze(['c', 'e', 'g', 'a']) == {
        'C major 13th': 'cega',
        'A minor 7th': 'aceg'
    }
예제 #7
0
def test_major_eleventh():
    assert analyze(['c', 'e', 'g', 'f']) == {'C major 11th': 'cegf'}
예제 #8
0
def test_major_ninth():
    assert analyze(['c', 'e', 'g', 'd']) == {'C major 9th': 'cegd'}
예제 #9
0
def test_half_diminished_7th():
    assert analyze(['a', 'c', 'e-', 'g']) == {'A half diminished 7th': 'ace-g'}
예제 #10
0
def test_minor_7th():
    assert analyze(['a', 'c', 'e', 'g']) == {
        'A minor 7th': 'aceg',
        'C major 13th': 'cega'
    }
예제 #11
0
def test_major_7th():
    assert analyze(['a', 'c+', 'e', 'g+']) == {'A major 7th': 'ac+eg+'}
    assert analyze(['b', 'd+', 'f+', 'a+']) == {'B major 7th': 'bd+f+a+'}
예제 #12
0
def test_dominant_7th():
    assert analyze(['a', 'c+', 'e', 'g']) == {'A dominant 7th': 'ac+eg'}
예제 #13
0
def test_sus4():
    assert analyze(['c', 'f', 'g']) == {'C sus4': 'cfg', 'F sus2': 'fgc'}
예제 #14
0
def test_sus2():
    assert analyze(['c', 'd', 'g']) == {'C sus2': 'cdg', 'G sus4': 'gcd'}