pc_chord: Pitch-class chord

View source: R/pc-chord.R

pc_chordR Documentation

Pitch-class chord

Description

This function represents an object as a pitch-class chord. A pitch-class chord is defined by the combination of a pitch-class set and a bass pitch class.

Usage

pc_chord(x)

## S3 method for class 'numeric'
pc_chord(x)

## S3 method for class 'pc_set'
pc_chord(x)

## S3 method for class 'pc_chord'
pc_chord(x)

## S3 method for class 'pc_chord_type'
pc_chord(x)

## S3 method for class 'pi_chord'
pc_chord(x)

## S3 method for class 'fr_chord'
pc_chord(x)

## S3 method for class 'character'
pc_chord(x)

Arguments

x

Object to represent as a pitch-class chord.

Value

Returns an object of class pc_chord.

Examples

pc_chord(c(0, 4, 7)) # C major triad in root position
pc_chord(c(4, 0, 7)) # C major triad in first inversion
pc_chord(c(7, 0, 4)) # C major triad in second inversion


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