Esempio n. 1
0
def reharmonize_v_to_ii_v(chord):
    chord_notes, chord_type_full, chord_modes = analyze_chord(chord)
    assert len(chord_modes) == 1
    chord_degree, key, harmonic_func_full = chord_modes[0]
    ii_chord_type_short = chords.determine_seventh(chords.ii7(key),
                                                   shorthand=True)[0]
    return [ii_chord_type_short, chord]
Esempio n. 2
0
def determine_key_and_function(chord):
    chord_notes, chord_type_full, results = analyze_chord(chord)
    # chord_meaning = chords.chord_shorthand_meaning[type_key],
    if len(results) == 1:
        for chord_degree, key, harmonic_func_full in results:
            print("{} (comprising {}) is a {} chord ({}) of the key of {}".
                  format(chord_type_full, ', '.join(chord_notes), chord_degree,
                         harmonic_func_full, key))
    else:
        print("{} (comprising {}) can be one of: ".format(
            chord_type_full, ', '.join(chord_notes)))
        for chord_degree, key, harmonic_func_full in results:
            print("\t a {} chord ({}) of the key of {}".format(
                chord_degree, harmonic_func_full, key))
def determine_key_and_function(chord):
    chord_notes, chord_type_full, results = analyze_chord(chord)
    # chord_meaning = chords.chord_shorthand_meaning[type_key],
    if len(results) == 1:
        for chord_degree, key, harmonic_func_full in results:
            print("{} (comprising {}) is a {} chord ({}) of the key of {}".format(chord_type_full,
                                                                                  ', '.join(chord_notes),
                                                                                  chord_degree,
                                                                                  harmonic_func_full,
                                                                                  key))
    else:
        print("{} (comprising {}) can be one of: ".format(chord_type_full, ', '.join(chord_notes)))
        for chord_degree, key, harmonic_func_full in results:
            print("\t a {} chord ({}) of the key of {}".format(chord_degree, harmonic_func_full, key))
def reharmonize_v_to_ii_v(chord):
    chord_notes, chord_type_full, chord_modes = analyze_chord(chord)
    assert len(chord_modes) == 1
    chord_degree, key, harmonic_func_full = chord_modes[0]
    ii_chord_type_short = chords.determine_seventh(chords.ii7(key), shorthand=True)[0]
    return [ii_chord_type_short, chord]