Modified beat joining so that it can also occur in duplicated measures more or less the same way as in unspecified measures.
Added structure to do the percentile based check.
Oversized update...
Taking into account bassa octava of guitar.