pi_chord: Pitch chord

View source: R/pi-chord.R

pi_chordR Documentation

Pitch chord

Description

This function represents an object as a pitch chord. A pitch chord is defined as a set of non-duplicated pitches, expressed as MIDI note numbers.

Usage

pi_chord(x, force = FALSE)

## S3 method for class 'numeric'
pi_chord(x, ...)

## S3 method for class 'character'
pi_chord(x, ...)

## S3 method for class 'pi_chord'
pi_chord(x, ...)

## S3 method for class 'fr_chord'
pi_chord(x, ...)

## S3 method for class 'pi_chord_type'
pi_chord(x, force = FALSE)

## S3 method for class 'pc_set'
pi_chord(x, force = FALSE)

## S3 method for class 'pc_chord'
pi_chord(x, force = FALSE)

Arguments

x

Object to represent as a pitch chord.

force

(Logical scalar) If TRUE, then objects will be coerced to a pi_chord representation even if the required mapping is not deterministic.

...

Present for S3 method compatibility.

Value

Returns an object of class pi_chord.


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