add partbpm by hit window size(blue lines)

can calculate average bpm with current serveral hits
and an overflow bugs fixed