pc_chord_type_alphabet: Pitch-class chord-type alphabet

pc_chord_type_alphabetR Documentation

Pitch-class chord-type alphabet

Description

This dataset defines an alphabet for the type "pc_chord_type". It is a list with two components, defining a forward and backward mapping between integers and "pc_chord_type" objects:

  • by_id: A list object. The ith element of this list contains the pitch-class chord type corresponding to integer i.

  • by_chord: An environment object. A pitch-class chord type can be mapped to an integer by taking the pitch-class chord type object, converting it to a string representation (with as.character), and accessing the object within this environment with this name. The result will be a coded vector (see coded_vec) of length 1.


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