decode_chord_quality: Decode chord quality

decode_chord_qualityR Documentation

Decode chord quality

Description

Decodes a given textual label into the implied chord quality.

Usage

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.

Details

No preprocessing is applied to x.

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).

See Also

  • register_chord_quality for registering additional chord qualities in the database.

  • initialise_chord_qualities for resetting the database.


pmcharrison/hrep documentation built on Feb. 18, 2024, 2:33 a.m.