select_chords: Select chords by criteria

Description Usage Arguments Value Examples

Description

Select chords by criteria

Usage

1
2
3
select_chords(note_name = NULL, chord_name = NULL, string_1_fret = NULL,
  string_2_fret = NULL, string_3_fret = NULL, string_4_fret = NULL,
  string_5_fret = NULL, string_6_fret = NULL)

Arguments

note_name

Root of the chord.

chord_name

Name of the chord.

string_1_fret

Fret location on the 1st string.

string_2_fret

Fret location on the 2nd string.

string_3_fret

Fret location on the 3rd string.

string_4_fret

Fret location on the 4th string.

string_5_fret

Fret location on the 5th string.

string_6_fret

Fret location on the 6th string.

Value

Returns a data frame of chords.

Examples

1
2
select_chords(chord_name = 'Major', string_5_fret = 3)
select_chords(note='d')

Example output

# A tibble: 2 x 15
     X1 note  chord string_1_fret string_2_fret string_3_fret string_4_fret
  <int> <chr> <chr>         <int>         <int>         <int>         <int>
1     2 g     Major             3             2             0             0
2     6 d     Major            NA            NA             0             2
# ... with 8 more variables: string_5_fret <int>, string_6_fret <int>,
#   string_1_finger <int>, string_2_finger <int>, string_3_finger <int>,
#   string_4_finger <int>, string_5_finger <int>, string_6_finger <int>
# A tibble: 6 x 15
     X1 note  chord string_1_fret string_2_fret string_3_fret string_4_fret
  <int> <chr> <chr>         <int>         <int>         <int>         <int>
1     6 d     Major            NA            NA             0             2
2     7 d     Majo~            NA            NA             0             2
3     8 d     Majo~            NA            NA             0             2
4     9 d     Domi~            NA            NA             0             2
5    10 d     Majo~            NA            NA             0             2
6    11 d     Majo~            NA            NA             0             2
# ... with 8 more variables: string_5_fret <int>, string_6_fret <int>,
#   string_1_finger <int>, string_2_finger <int>, string_3_finger <int>,
#   string_4_finger <int>, string_5_finger <int>, string_6_finger <int>

ggguitar documentation built on May 2, 2019, 3:28 p.m.