changes to  make pattern inference work with a sequence of two or more of the same note