Composing rules, e.g. harmonic or musical rules, for use in automatic composition; Rule generation algorithms therefor