lp_chord_id: LilyPond chord notation

View source: R/chord_mapping.R

lp_chord_idR Documentation

LilyPond chord notation

Description

Obtain LilyPond quasi-chord notation.

Usage

lp_chord_id(root, chord, exact = FALSE, ...)

lp_chord_mod(root, chord, exact = FALSE, ...)

Arguments

root

character, root note.

chord

character, tabr format chord name.

exact

logical, return a more exact LilyPond chord representation.

...

additional arguments passed to transpose().

Details

These functions take a tabr syntax representation of a chord name and convert it to quasi-LilyPond syntax; "quasi" because the result still uses ⁠_⁠ for flats and ⁠#⁠ for sharps, whereas LilyPond itself uses es and is (mostly). This is the format used by tabr functions involved in communicating with LilyPond for music transcription, and they make these final conversions on the fly. This can be overridden with exact = TRUE.

Value

character

Examples

lp_chord_id("a a a", "m M m7_5")
lp_chord_mod("a a a", "m M m7_5")
lp_chord_id("a a a", "m M m7_5", exact = TRUE)
lp_chord_mod("a a a", "m M m7_5", exact = TRUE)

tabr documentation built on Sept. 12, 2024, 6:18 a.m.