register_chord_quality | R Documentation |
This function registers a new chord quality in the database
used by the decode_chord_quality
function.
Unless overwritten,
this chord quality will persist for the remainder of the R session.
register_chord_quality(key, value, overwrite = FALSE)
key |
(Character scalar) Textual key identifying the chord quality. |
value |
(Integer vector) Chord quality, provided as an integer vector of non-duplicated pitch classes in ascending order. |
overwrite |
(Logical scalar) If |
If you have some chord qualities to add to the hrep
package,
please register an issue or submit a pull request at
https://github.com/pmcharrison/hrep.
decode_chord_quality
for accessing the database.
initialise_chord_qualities
for resetting the database.
decode_chord_quality("my_chord") # returns NULL
register_chord_quality("my_chord", c(0, 1, 2))
decode_chord_quality("my_chord") # returns c(0, 1, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.