

def _get_mode(steps, mode):
    ' Gets the correct mode step list by rotating the list '
    mode = (mode - 1)
    res = (steps[mode:] + steps[:mode])
    return res

dataset/ETHPy150Open jdan/Melopy/melopy/scales.py _get_mode/original