fixed pattern count bug in converter, new melody