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.

pi_chord(x, force = FALSE)

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

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

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

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

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

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

# S3 method for 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.