public boolean matchByBeat(Tune s1, Tune s2) {
        if (s1.getBeat() == null || s2.getBeat() == null) {
            return false;
        }
        if (s1.getBeat().equals(s2.getBeat())) {
            return true;
        }
        return false;
    }