is.major: Test the major/minor modality of a set

View source: R/Keys.R

is.majorR Documentation

Test the major/minor modality of a set

Description

These functions test the majorness/minorness of a tertian or diatonic set, a logical TRUE/FALSE. These functions are not testing whether a chord is strictly a major or minor chord, but rather a "broad" major/minorness: gnerally, the presence of a minor third degree makes a set "minor"; thus, a diminished chord is "minor" and the lydian key is "major."

Usage

is.major(x, ...)

is.minor(x, ...)

## S3 method for class 'diatonicSet'
is.major(x)

## S3 method for class 'diatonicSet'
is.minor(x)

## Default S3 method:
is.major(x, ...)

## Default S3 method:
is.minor(x, ...)

Arguments

x

Input data, interpreted as diatonic keys or chords.

Must be a diatonicSet or tertianSet or something that can be parsed as one.

...

Parameters passed to the parsers (tertianSet() and diatonicSet()).

Details

Either function can be called directly on tertian or diatonic sets. If called on anything else, the functions first call the tertianSet() parser. If any values fail to parse (returning NA), the diatonicSet() parser is called on them.

See Also

Other Tonal feature functions: is.simple()


Computational-Cognitive-Musicology-Lab/humdrumR documentation built on Oct. 22, 2024, 9:28 a.m.