gochord

package
v0.0.0-...-e3396f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Open  = 0
	Muted = -1
)
View Source
const (
	FretBoardSize = 4
)

Variables

This section is empty.

Functions

func IsFretted

func IsFretted(fret int) bool

Types

type Chord

type Chord struct {
	Name    string
	Capo    int
	Strings []String
}

func NewChord

func NewChord(name, layout string) Chord

func (Chord) FirstFret

func (c Chord) FirstFret() int

func (Chord) FretBoard

func (c Chord) FretBoard() FretBoard

func (Chord) HighestFret

func (c Chord) HighestFret() int

func (Chord) LowestFret

func (c Chord) LowestFret() int

func (Chord) SVG

func (c Chord) SVG(width, height int, out io.Writer)

func (Chord) String

func (c Chord) String() string

func (Chord) StringCount

func (c Chord) StringCount() int

type FretBoard

type FretBoard struct {
	FirstFret int
	Unfretted []string
	Frets     [][]string
}

func (FretBoard) FretIndex

func (fb FretBoard) FretIndex(fret int) int

func (FretBoard) String

func (fb FretBoard) String() string

func (FretBoard) Strings

func (fb FretBoard) Strings() int

type String

type String struct {
	Finger string
	Fret   int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL