INNER CODE UNIT · Python

re_str

microsoft/muzic · musicagent/auxiliary/muzic/roc/main.py:65

        re_str = re_str[:-1]
        re_str += '*{})$|'.format(key)
    re_str = re_str[:-1]

    tmp_candidates = []
    for row in candidates_bars:
        if re.match(r'{}'.format(re_str), row[1]):
            tmp_candidates.append(row)

    if len(tmp_candidates) == 0:
        re_str = '^{}( {})*$'.format(chord_list_[-1], chord_list_[-1])
        for row in candidates_bars:
            if re.match(r'{}'.format(re_str), row[1]):
                tmp_candidates.append(row)

    if len(tmp_candidates) > 0:
        candidates_bars = tmp_candidates
    else:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…