chord

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 AllQualities

func AllQualities() []Quality

AllQualities return all chord qualities

func (Quality) Cardinality

func (q Quality) Cardinality() int

Cardinality returns count of pitches in the chord

func (Quality) IntervalPattern

func (q Quality) IntervalPattern() []int

IntervalPattern returns chord interval pattern in semitones

func (Quality) Number

func (q Quality) Number() int

Number returns chord number according to William Zeitler's system

func (Quality) PitchClass

func (q Quality) PitchClass() []int

PitchClass returns chord pitch class

func (Quality) Pitches

func (q Quality) Pitches(root pitch.Type) []pitch.Type

Pitches returns chord pitches

func (Quality) RingNumber

func (q Quality) RingNumber() int

RingNumber return chord quality number according to Ian Ring's numbering system

func (Quality) String

func (q Quality) String() string

String returns chord name

func (Quality) ZeitlerNumber

func (q Quality) ZeitlerNumber() int

ZeitlerNumber returns chord number according to William Zeitler's system

Jump to

Keyboard shortcuts

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