An expert system for harmonizing analysis of tonal music