generates polyphonic score