Converts pitches to pitch classes.

pi_to_pc(x)

Arguments

x

A numeric vector of pitches

Value

A numeric vector produced by mapping each element in pitch to a pitch class