cent_per_value¶
- sonipy.cent_per_value(f_min, f_max, v_min, v_max)¶
This function takes in a frequency max and min, and y value max and min and returns a y scale parameter in units of cents/y value. Cents are a logarithmic unit of tone intervals (https://en.wikipedia.org/wiki/Cent_(music)).
- Parameters
- f_minfloat
Minimum frequency.
- f_maxfloat
Maximum frequency.
- v_minfloat
Minimum y value.
- v_maxfloat
Maximum y value.
- Returns
- float
A y-scale parameter in units of cents/y value.