Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Names a chord. Can determine almost every chord, from a simple triad to a fourteen note polychord.

        def determine(chord, shorthand = False, no_inversions = False, no_polychords = False):
	"""Names a chord. Can determine almost every chord, from a simple triad to a fourteen note polychord."""
	if chord == []:
		return []
	elif len(chord) == 1:
		return chord
	elif len(chord) == 2:
		return [intervals.determine(chord[0], chord[1])]
	elif len(chord) == 3:
		return determine_triad(chord, shorthand, no_inversions, no_polychords)
	elif len(chord) == 4:
		return determine_seventh(chord, shorthand, no_inversions, no_polychords)
	elif len(chord) == 5:
		return determine_extended_chord5(chord, shorthand, no_inversions, no_polychords)
	elif len(chord) == 6:
		return determine_extended_chord6(chord, shorthand, no_inversions, no_polychords)
	elif len(chord) == 7:
		return determine_extended_chord7(chord, shorthand, no_inversions, no_polychords)
	else:
		return determine_polychords(chord, shorthand)
        


src/m/i/mingus-0.4.2.3/mingus/core/progressions.py   mingus(Download)
	]
 
	type_of_chord = chords.determine(chord, True, False, True)
	for chord in type_of_chord:
 

src/m/i/mingus-counterpoint-HEAD/mingus/core/progressions.py   mingus-counterpoint(Download)
        ['vii', 'dim', 'm7b5'],
        ]
    type_of_chord = chords.determine(chord, True, False, True)
    for chord in type_of_chord:
        name = chord[0]