Automatic melody harmonization by classical harmony rules.