Skip to content

Add a way to control number of frets and where on the fretboard the chord is shown #16

@grenmester

Description

@grenmester

Currently, you can use new-chordgen to change the number of strings in the diagram.

#let chord = new-chordgen()
#box(chord("x,x,x,9,8,8", name: "C"))
#box(chord("x,x,x,10,10,8", name: "F"))
#box(chord("x,x,x,7,8,7", name: "G"))
#box(chord("x,x,x,9,10,8", name: "Am"))

If you compile the above code, the fretboard is cut off at different frets (7 for G and 8 for C, F, and Am). Also, the last fret technically isn't needed since there's nothing there. I would like to be able to change the diagram to reflect that but based on the documentation, it doesn't seem like this is currently possible.

Is there a way to enable this to be possible? For example, I want to be able to do something like the following:

#box(chord("x,x,x,9,8,8", name: "C", at: 7, frets: 4))

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