Learn R Programming

ggguitar (version 0.1.1)

chord_for_frets: Chord for Frets

Description

Return the notes for a given set of frets for a specified tuning. Preserves NAs indicating muted strings.

Usage

chord_for_frets(frets, tuning = c("e", "a", "d", "g", "b", "e"))

Arguments

frets
A 6 element vector representing fret positions.
tuning
A 6 element vector representing notes of open strings.

Value

Returns a 6 element vector of note names.

See Also

notes_for_frets

Examples

Run this code
chord_for_frets(c(NA, 3, 2, 0, 1, 0))

Run the code above in your browser using DataLab