Skip to content

Commit b2b48dd

Browse files
authored
Update README.md
1 parent 8b0db26 commit b2b48dd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,26 @@ below.
101101
| stolz15 | [10.5281/zenodo.2545762](https://doi.org/10.5281/zenodo.2545762) | <https://github.com/pmcharrison/stolz15> |
102102
| wang13 | [10.5281/zenodo.2545764](https://doi.org/10.5281/zenodo.2545764) | <https://github.com/pmcharrison/wang13> |
103103

104+
105+
## Spectral representations
106+
107+
Certain `incon` models can be applied to full frequency spectra rather than just
108+
symbolically notated chords. One example is the set of interference models
109+
provided in the `dycon` package. In order to run such models on full frequency
110+
spectra one must call `hrep` and `dycon` functions explicitly, as in the
111+
following example, which computes the roughness of a chord using the
112+
Hutchinson-Knopoff dissonance model:
113+
114+
``` r
115+
spectrum <-
116+
hrep::sparse_fr_spectrum(list(
117+
frequency = c(400, 800, 1200, 1250),
118+
amplitude = c(1, 0.7, 0.9, 0.6)
119+
))
120+
121+
dycon::roughness_hutch(spectrum)
122+
```
123+
104124
## References
105125

106126
Bowling, D. L., Purves, D., & Gill, K. Z. (2018). Vocal similarity

0 commit comments

Comments
 (0)