pc_harmonicity | R Documentation |
Gets the pitch-class harmonicity of an input sonority, after \insertCiteHarrison2018;textualincon and \insertCiteMilne2013;textualincon.
pc_harmonicity(
x,
method = "kl",
num_harmonics = 12,
rho = 0.75,
sigma = 6.83,
...
)
## Default S3 method:
pc_harmonicity(
x,
method = "kl",
num_harmonics = 12,
rho = 0.75,
sigma = 6.83,
array_dim = 1200,
...
)
## S3 method for class 'pc_set'
pc_harmonicity(
x,
method = "kl",
num_harmonics = 12,
rho = 0.75,
sigma = 6.83,
array_dim = 1200,
...
)
## S3 method for class 'milne_pc_spectrum'
pc_harmonicity(
x,
method = "kl",
num_harmonics = 12,
rho = 0.75,
sigma = 6.83,
...
)
x |
Object to analyse. |
method |
(Character scalar) Method to use.
|
num_harmonics |
(Integerish scalar) Number of harmonics to use when expanding tones into their implied harmonics, and when defining the harmonic template (including the fundamental frequency). Defaults to 12, after \insertCiteMilne2016;textualincon. |
rho |
(Numeric scalar) Roll-off parameter for harmonic expansion. Defaults to 0.75, after \insertCiteMilne2016;textualincon. |
sigma |
(Numeric scalar) Standard deviation of the Gaussian smoothing distribution (cents). Defaults to 6.83, after \insertCiteMilne2016;textualincon. |
... |
Arguments passed to specific methods. |
array_dim |
(Integerish scalar) Dimensionality of the pitch-class spectrum array. Defaults to 1200, after \insertCiteMilne2016;textualincon. |
Pitch-class harmonicity, as a numeric scalar.
This algorithm makes use of milne_pc_spectrum()
as defined in the hrep
package.
pc_harmonicity(c(0, 4, 7))
pc_harmonicity(c(0, 3, 7))
pc_harmonicity(c(0, 3, 6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.