roughness_seth | R Documentation |
Gets the roughness of a sonority according to the model of Sethares (1993).
By default, the algorithm is modified according to
\insertCiteSethares2005;textualincon and
\insertCiteWeisser2013;textualincon:
roughness is proportional to the minimum amplitude of each pair of partials,
not the product of their amplitudes.
This behaviour can be disabled by setting min_amplitude = FALSE
.
roughness_seth(x, min_amplitude = TRUE, ...)
## Default S3 method:
roughness_seth(x, min_amplitude = TRUE, ...)
## S3 method for class 'sparse_fr_spectrum'
roughness_seth(x, min_amplitude = TRUE, ...)
x |
Object to analyse, which is coerced to the class
|
min_amplitude |
See |
... |
Further arguments to pass to |
Estimated roughness, as a numeric scalar.
Sethares2005;textualincon suggests using loudnesses instead of amplitudes. However, he acknowledges that loudness is difficult to calculate for arbitrary timbres. Furthermore, if we replace amplitude with roughness, we lose the original model's invariance to multiplicative scaling of the original signal. In this implementation, we therefore stay with amplitude, consistent with \insertCiteSethares1993;textualincon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.