is_diatonic: Check if notes and chords are diatonic

View source: R/scales.R

is_diatonicR Documentation

Check if notes and chords are diatonic

Description

Check if notes and chords are diatonic in a given key.

Usage

is_diatonic(notes, key = "c")

Arguments

notes

character, a noteworthy string.

key

character, key signature.

Details

This function is a wrapper around is_in_scale(). To check if individual notes are in a scale, see note_in_scale().

Value

logical

See Also

is_in_scale()

Examples

is_diatonic("ceg ace ce_g", "c")
is_diatonic(c("r", "d", "dfa", "df#a"), "d")

tabr documentation built on Sept. 21, 2023, 5:06 p.m.