From b2b48dd9abd6b7f74f4090a1c119f37dd146f6e3 Mon Sep 17 00:00:00 2001 From: Peter Harrison Date: Mon, 4 Jul 2022 13:27:35 +0100 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 6a53472..89b133a 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,26 @@ below. | stolz15 | [10.5281/zenodo.2545762](https://doi.org/10.5281/zenodo.2545762) | | | wang13 | [10.5281/zenodo.2545764](https://doi.org/10.5281/zenodo.2545764) | | + +## Spectral representations + +Certain `incon` models can be applied to full frequency spectra rather than just +symbolically notated chords. One example is the set of interference models +provided in the `dycon` package. In order to run such models on full frequency +spectra one must call `hrep` and `dycon` functions explicitly, as in the +following example, which computes the roughness of a chord using the +Hutchinson-Knopoff dissonance model: + +``` r +spectrum <- + hrep::sparse_fr_spectrum(list( + frequency = c(400, 800, 1200, 1250), + amplitude = c(1, 0.7, 0.9, 0.6) + )) + +dycon::roughness_hutch(spectrum) +``` + ## References Bowling, D. L., Purves, D., & Gill, K. Z. (2018). Vocal similarity