get_f_max¶
- sonipy.get_f_max(f_min, cents_per_value, v_min, v_max)¶
This function takes in a y value max and min, a minimum frequency and a y scale parameter in units of cents/y value, and returns the maximum frequency that fits to such a scale. Cents are a logarithmic unit of tone intervals (https://en.wikipedia.org/wiki/Cent_(music)).
- Parameters
- f_minfloat
Minimum frequency.
- cents_per_valuefloat
A y scale parameter in units of cents/y value.
- v_minfloat
Minimum y value.
- v_maxfloat
Maximum y value.
- Returns
- float
Maximum frequency.