roughness_wang | R Documentation |
Gets the roughness of a sonority according to the model of Wang et al. (2013).
roughness_wang(
x,
detail = FALSE,
include_phase_impact_factors = FALSE,
unit_amplitude_in_dB = 60,
msg = function(n, N, msg) if (interactive()) message(n, "/", N, ": ", msg),
...
)
## Default S3 method:
roughness_wang(
x,
detail = FALSE,
include_phase_impact_factors = FALSE,
unit_amplitude_in_dB = 60,
msg = function(n, N, msg) if (interactive()) message(n, "/", N, ": ", msg),
...
)
## S3 method for class 'sparse_fr_spectrum'
roughness_wang(
x,
detail = FALSE,
include_phase_impact_factors = FALSE,
unit_amplitude_in_dB = 60,
msg = function(n, N, msg) if (interactive()) message(n, "/", N, ": ", msg),
...
)
x |
Object to analyse,
which will be coerced to an object of class
|
detail |
(Logical scalar) Whether to return detailed output information. |
include_phase_impact_factors |
(Logical scalar)
Whether to include phase impact factors in roughness computation.
Set to |
unit_amplitude_in_dB |
(Numeric scalar) Determines the decibel level of a partial with amplitude 1. When the input is a musical chord, this will correspond to the decibel level of the fundamental frequencies of each chord tone. |
msg |
Function to be called to give progress updates.
This function should accept three arguments:
|
... |
Additional parameters to pass to
|
If detail == FALSE
, a numeric vector of roughnesses,
otherwise a list containing detailed algorithm output.
This implementation is designed for sparse input spectra, that is, spectra containing only a few (< 100) components.
Wang2013incon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.