Documentation ¶
Index ¶
- type Quality
- func (q Quality) Cardinality() int
- func (q Quality) IntervalPattern() []int
- func (q Quality) Number() int
- func (q Quality) PitchClass() []int
- func (q Quality) Pitches(root pitch.Type) []pitch.Type
- func (q Quality) RingNumber() int
- func (q Quality) String() string
- func (q Quality) ZeitlerNumber() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Quality ¶
type Quality int
Quality is a type for chord quality
const ( Invalid Quality = iota Major Quality = iota Minor Quality = iota Power Quality = iota Diminished Quality = iota Augmented Quality = iota MajorSuspendedSecond Quality = iota MajorSuspendedFourth Quality = iota MajorFlatFifth Quality = iota MajorDoubleSharpFifth Quality = iota MinorSharpFifth Quality = iota MinorDoubleFlatFifth Quality = iota MajorSuspendedSecondFlatFifth Quality = iota MajorSuspendedSecondDoubleFlatFifth Quality = iota MajorSuspendedSecondSharpFifth Quality = iota MajorSuspendedFourthFlatFifth Quality = iota MajorSuspendedFourthSharpFifth Quality = iota MajorSuspendedFourthDoubleSharpFifth Quality = iota MajorSuspendFlatFifthAddSharpFifth Quality = iota MajorSuspendedSecondSuspendedFourth Quality = iota Phrygian Quality = iota Lydian Quality = iota Locrian Quality = iota Quartal Quality = iota QuartalAugmented Quality = iota DominantSeventh Quality = iota MinorSeventh Quality = iota MajorSeventh Quality = iota MinorMajorSeventh Quality = iota DiminishedSeventh Quality = iota MinorSeventhFlatFifth Quality = iota AugmentedSeventh Quality = iota AugmentedMajorSeventh Quality = iota DominantSeventhFlatFifth Quality = iota DominantSeventhSuspendedSecond Quality = iota DominantSeventhSuspendedFourth Quality = iota DominantSeventhSuspendedSecondFlatFifth Quality = iota DominantSeventhSuspendedSecondSharpFifth Quality = iota DominantSeventhSuspendedFourthFlatFifth Quality = iota DominantSeventhSuspendedFourthSharpFifth Quality = iota DominantSeventhSuspendSecondSuspendFourth Quality = iota MajorSeventhSuspendedSecond Quality = iota MajorSeventhSuspendedSecondFlatFifth Quality = iota MajorSeventhSuspendedFourth Quality = iota MajorSeventhSuspendedSecondSuspendedFourth Quality = iota MinorSeventhSharpFifth Quality = iota MinorSeventhDoubleFlatFifth Quality = iota MinorMajorSeventhSharpFifth Quality = iota MinorMajorSeventhDoubleFlatFifthDoubleFlatSeventh Quality = iota MajorSeventhFlatFifth Quality = iota MajorSeventhDoubleSharpFifth Quality = iota DiminishedMajorSeventh Quality = iota MajorSeventhSuspendedFourthSharpFifth Quality = iota MajorSeventhSuspendedFourthDoubleSharpFifth Quality = iota PhrygianAugmentedSeventh Quality = iota LydianMajorSeventh Quality = iota MajorAddFourth Quality = iota MinorAddFourth Quality = iota DominantSeventhAddFourth Quality = iota MajorSeventhAddFourth Quality = iota MajorAddSharpFourth Quality = iota MinorAddSharpFourth Quality = iota DominantSeventhAddSharpFourth Quality = iota MajorSeventhAddSharpFourth Quality = iota SuspendedSecondFlatFifthAddSharpFifth Quality = iota MajorAddSixth Quality = iota MinorAddSixth Quality = iota MajorAddSixthFlatFifth Quality = iota MajorAddSixthSuspendSecond Quality = iota MajorAddSixthSuspendFourth Quality = iota MajorAddSixthSuspendSecondFlatFifth Quality = iota MajorAddSixthSuspendSecondDoubleFlatFifth Quality = iota MajorAddNinth Quality = iota MinorAddNinth Quality = iota MajorAddSixthAddNinth Quality = iota MinorAddSixthAddNinth Quality = iota MajorAddFlatNinth Quality = iota MinorAddFlatNinth Quality = iota MajorAddSharpNinth Quality = iota )
Chord quality enumerations
func (Quality) Cardinality ¶
Cardinality returns count of pitches in the chord
func (Quality) IntervalPattern ¶
IntervalPattern returns chord interval pattern in semitones
func (Quality) PitchClass ¶
PitchClass returns chord pitch class
func (Quality) RingNumber ¶
RingNumber return chord quality number according to Ian Ring's numbering system
func (Quality) ZeitlerNumber ¶
ZeitlerNumber returns chord number according to William Zeitler's system
Click to show internal directories.
Click to hide internal directories.