def get_frequency(key=88, pitch=440.0):
    """
    Get frequency from piano key number
    :param key: key number of the piano
    :param pitch: convert pitch of the A4 note in Hz
    :return: frequency in hz
    """
    return pow(2, float(key - 49) / 12.0) * pitch