match loop endings against beat grid