Takes a melody and generates the most consonant fugue.