ratio_to_cents: Convert between chord frequency ratios and cents

View source: R/freq.R

ratio_to_centsR Documentation

Convert between chord frequency ratios and cents

Description

Convert between frequency ratios and logarithmic cents

Usage

ratio_to_cents(x, y = NULL)

cents_to_ratio(x)

Arguments

x

a vector of ratios if y = NULL, otherwise frequencies. Cents for cents_to_ratio().

y

if not NULL, frequencies and the ratios are given by y / x.

Value

numeric

Examples

ratio_to_cents(c(0.5, 1, 1.5, 2))
cents_to_ratio(c(-1200, 0, 701.955, 1200))

tabr documentation built on Sept. 21, 2023, 5:06 p.m.