scamp_extensions.pitch.utilities.ratio_to_cents
- scamp_extensions.pitch.utilities.ratio_to_cents(ratio: Real) Real [source]
Given a frequency ratio, convert it to a corresponding number of cents. The first argument can optionally be a list, tuple, or iterator, in which case this is performed on each element.
- Parameters:
ratio – frequency ratio (e.g. 1.5 for a perfect fifth)