def tonal_transposition(self, index, scale):
        pos = index + 1 - scale.index(self)
        octave, rest = divmod(pos, 7)
        note = copy.copy(scale[pos % len(scale)])
        note.octave += octave
        return note
dataset/ETHPy150Open kroger/pyknon/pyknon/music.py/Note.tonal_transposition/swapped operands of `-`