Finds common patterns in midi files