tabr (version 0.3.5)

chord_is_diatonic: Check if chords are diatonic

Description

Check whether chords are diatonic in a given key.

Usage

chord_is_diatonic(chord, key = "c")

Arguments

chord

character, a chord string. May be a vector.

key

character, key signature.

Value

logical

Details

This function strictly accepts chord strings. To check if notes are in a scale, see note_in_scale. To check generally if a noteworthy string is fully diatonic, see is_diatonic.

See Also

note_in_scale, is_diatonic

Examples

Run this code
# NOT RUN {
chord_is_diatonic("ceg ace ce_g", "c")
chord_is_diatonic(c("dfa", "df#a"), "d")
# }

Run the code above in your browser using DataLab