import math


def translate_key(key):
    """ Translate from MIDI coordinates to x/y coordinates. """
    vertical = math.floor(key / 16)
    horizontal = key - (vertical * 16)

    return horizontal, vertical