added testcase for polyphonic mode;
fixed variable initialization bug in polyphonic mode;
extended polyphonic mode test