Skip to content

NamedTuple Chord #25

@pylang

Description

@pylang

First off - great, fun library.

Your example of the C-chord in some tuning:

>>> print(c_chord.fingering(fretboard=fretboard))
(0, 0, 0, 3, 3, 3)

It was not clear which tuning this was, but modifying your example to standard tuning, the C-chord could be:

>>> print(c_chord.fingering(fretboard=fretboard))
(0, 3, 2, 0, 1, 0)

or is the orientation reversed?

>>> print(c_chord.fingering(fretboard=fretboard))
(0, 1, 0, 2, 3, 0)

You can see the uncertainty in both tuning and orientation. I think returning a namedtuple would clear up these confusions:

>>> print(c_chord.fingering(fretboard=fretboard))
Fingering('E'=0, 'A'=3, 'D'=2, 'G'=0, 'B'=1, 'e'=0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions