All problems caused by note detection solved. Beam detection improved