smooth_log_periodicity: Smoothed log periodicity

View source: R/main.R

smooth_log_periodicityR Documentation

Smoothed log periodicity

Description

This function computes a chord's smoothed logarithmic periodicity, after \insertCiteStolzenburg2015;textualstolz15.

Usage

smooth_log_periodicity(x, d = 0.011)

## Default S3 method:
smooth_log_periodicity(x, d = 0.011)

## S3 method for class 'pi_chord'
smooth_log_periodicity(x, d = 0.011)

Arguments

x

Sonority to analyse. This will be coerced to an object of class pi_chord. Numeric inputs will be interpreted as MIDI note numbers.

d

(numeric scalar): Maximal allowed error in the algorithm's interval approximation step, expressed as a fraction of the original interval. The default value, 0.011, corresponds to 'Rational Tuning II' in Stolzenburg's paper.

Value

A numeric scalar identifying the chord's periodicity. High values mean a higher period length, lower periodicity, and lower consonance.

References

\insertAllCited

pmcharrison/stolz15 documentation built on Feb. 12, 2024, 3:19 a.m.