FrequencyScale

class sonipy.FrequencyScale(value_min, value_max, frequency_min=None, frequency_max=None, cents_per_value=None, verbose=False)

Bases: object

This class builds a frequency scale and populates the namespace of frequency objects based on the given inputs from the following combos:
  • frequency_min, frequency_max, y value min and y value max

  • frequency_max, cents_per_value, y value min and y value max

  • frequency_min, cents_per_value, y value min and y value max

Cents are a logarithmic unit of tone intervals (https://en.wikipedia.org/wiki/Cent_(music)).

Parameters
frequency_minfloat

Minimum frequency.

frequency_maxfloat

Maximum frequency.

cents_per_valuefloat

A y scale parameter in units of cents/y value.

value_minfloat

Description of parameter value_min.

value_maxfloat

Description of parameter value_max.

verbosebool

Flag to toggle printing functions.