def get_f_min(f_max, cents_per_value, v_min, v_max):
    """
    This function takes in a y value max and min, a maximum frequency and a y scale parameter in units of cents/y value, and returns the minimum frequency that fits to such a scale.
    Cents are a logarithmic unit of tone intervals (https://en.wikipedia.org/wiki/Cent_(music)).

    Parameters
    ----------
    f_max : float
        Maximum frequency.
    cents_per_value : float
        A y scale parameter in units of cents/y value.
    v_min : float
        Minimum y value.
    v_max : float
        Maximum y value.

    Returns
    -------
    float
        Minimum frequency.

    """
    f_min = f_max / (2 ** ((v_max - v_min) * cents_per_value / 1200))
    return f_min