powered by
Convert between frequency ratios and logarithmic cents
ratio_to_cents(x, y = NULL)cents_to_ratio(x)
cents_to_ratio(x)
numeric
a vector of ratios if y = NULL, otherwise frequencies. Cents for cents_to_ratio().
y = NULL
cents_to_ratio()
if not NULL, frequencies and the ratios are given by y / x.
NULL
y / x
ratio_to_cents(c(0.5, 1, 1.5, 2)) cents_to_ratio(c(-1200, 0, 701.955, 1200))
Run the code above in your browser using DataLab