Decodes a given textual label into the implied chord quality.

decode_chord_quality(x, must_work = FALSE)

Arguments

x

(Character scalar) Label to decode.

must_work

(Logical scalar) If TRUE, the function will throw an error if the textual label is not recognised.

Value

If the textual label is recognised, returns an integer vector corresponding to the pitch-class set expressed relative to the chord root, otherwise returns NULL (or an error if must_work is TRUE).

Details

No preprocessing is applied to x.

See also