Documentation ¶
Overview ¶
A chord, in music, is any harmonic set of three or more notes that is heard as if sounding simultaneously.
Chords have different Forms, such as Triad, Seventh, Extended, Added/Omitted, Specific or General.
Chords have different Functions, such as Diatonic, Altered or Other.
Chords have different Techniques, such as Block, Chordioid, Guitar, Open, Power or Slash.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListAllForms ¶
func ListAllForms() (list []string)
ListAllForms to list the names of all known chord forms
Types ¶
type Form ¶
type Form struct { Name string // contains filtered or unexported fields }
Form is identified by positive/negative regular expressions, and then adds/removes pitch classes by interval from the root of the chord.
func (*Form) MatchString ¶
MatchString processes the positive/negative regular expressions to determine if this form matches a string.
type Function ¶
type Function int
const ( GenericFunction Function = iota // Diatonic TonicDiatonic DominantDiatonic SubdominantDiatonic SupertonDiatonicicDiatonic MediantDiatonic SubmediantDiatonic LeadingDiatonic SubtonicDiatonic // Altered ApproachAltered BorrowedAltered ChromaticMediantAltered NeapolitanAltered PassingAltered SecondaryAltered SecondaryDominantAltered SecondaryLeadingToneAltered SecondarySupertonicAltered // Other CommonOther ContrastOther PrimaryTriadOther SubsidiaryOther )