Skip to content

Implementation of Stolzenburg's (2015) Periodicity Algorithm

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

pmcharrison/stolz15

Repository files navigation

stolz15 - Implementation of Stolzenburg’s (2015) Periodicity Algorithm

lifecycle Travis build status AppVeyor build status Coverage status DOI

Periodicity, also known as harmonicity, is an important predictor of a chord’s consonance. This package implements Stolzenburg’s (2015) algorithm for quantifying a chord’s periodicity.

Installation

You can install this package from GitHub:

if (!require(devtools)) install.packages("devtools")
devtools::install_github("pmcharrison/stolz15")

Example usage

Higher model outputs correspond to greater period lengths and hence lower periodicity. A major chord therefore produces a lower score than a diminished chord:

library(stolz15)

smooth_log_periodicity(c(60, 64, 67))
#> [1] 2
smooth_log_periodicity(c(60, 63, 66))
#> [1] 3.786034

References

Stolzenburg, F. (2015). Harmony perception by periodicity detection. Journal of Mathematics and Music, 9(3), 215–238. https://doi.org/10.1080/17459737.2015.1033024

About

Implementation of Stolzenburg's (2015) Periodicity Algorithm

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published