jl_tonal_dissonance: Tonal dissonance

View source: R/model-jl12.R

jl_tonal_dissonanceR Documentation

Tonal dissonance

Description

Computes tonal dissonance using the algorithm of \insertCiteJohnson-Laird2012;textualincon.

Usage

jl_tonal_dissonance(x)

## Default S3 method:
jl_tonal_dissonance(x)

## S3 method for class 'pc_set'
jl_tonal_dissonance(x)

Arguments

x

Sonority to analyse. This will be coerced to an object of class pc_set.

Value

Integer scalar identifying the chord's consonance rank, with higher values corresponding to increasing degrees of dissonance.

References

\insertAllCited

Examples

jl_tonal_dissonance(c(0, 4, 7))
jl_tonal_dissonance(c(0, 3, 7))
jl_tonal_dissonance(c(0, 3, 6))

pmcharrison/incon documentation built on Feb. 12, 2024, 3:18 a.m.