INNER CODE UNIT · Python

prefer_note

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

                prefer_note = last_note - 2
            elif last_note % 12 == 5:
                prefer_note = last_note - 1
            elif last_note % 12 == 11:
                prefer_note = last_note + 1
                # Minor A
        else:
            if last_note % 12 == 11 or last_note % 12 == 2:  # 2 -> 1, 4 -> 3
                prefer_note = last_note - 2
            elif last_note % 12 == 6:  # 6 -> 5
                prefer_note = last_note - 1
            elif last_note % 12 == 7:  # 7-> 1
                prefer_note = last_note + 2

        if prefer_note is not None:
            for x in candidates_bars:
                if x[0][0] == prefer_note:
                    selected_bars.append(x)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…