TracktionEngine
Public Types | Public Member Functions | Static Public Member Functions | List of all members
tracktion::engine::Chord Class Reference

Public Types

enum  ChordType {
  customChord = -2 , invalidChord = -1 , majorTriad = 0 , minorTriad ,
  diminishedTriad , augmentedTriad , majorSixthChord , minorSixthChord ,
  dominatSeventhChord , majorSeventhChord , minorSeventhChord , augmentedSeventhChord ,
  diminishedSeventhChord , halfDiminishedSeventhChord , minorMajorSeventhChord , suspendedSecond ,
  suspendedFourth , powerChord , majorNinthChord , dominantNinthChord ,
  minorMajorNinthChord , minorDominantNinthChord , augmentedMajorNinthChord , augmentedDominantNinthChord ,
  halfDiminishedNinthChord , halfDiminishedMinorNinthChord , diminishedNinthChord , diminishedMinorNinthChord
}
 

Public Member Functions

 Chord (ChordType type=majorTriad)
 
 Chord (juce::Array< int > steps, juce::String symbol)
 
juce::String toString ()
 
ChordType getType () const
 
bool isValid () const
 
juce::String getName () const
 
juce::String getShortName () const
 
juce::String getSymbol () const
 
juce::Array< int > getSteps () const
 
juce::Array< int > getSteps (int inversion) const
 

Static Public Member Functions

static Chord fromString (const juce::String &)
 
static juce::Array< ChordTypegetAllChordType ()
 

Member Enumeration Documentation

◆ ChordType

Enumerator
customChord 
invalidChord 
majorTriad 
minorTriad 
diminishedTriad 
augmentedTriad 
majorSixthChord 
minorSixthChord 
dominatSeventhChord 
majorSeventhChord 
minorSeventhChord 
augmentedSeventhChord 
diminishedSeventhChord 
halfDiminishedSeventhChord 
minorMajorSeventhChord 
suspendedSecond 
suspendedFourth 
powerChord 
majorNinthChord 
dominantNinthChord 
minorMajorNinthChord 
minorDominantNinthChord 
augmentedMajorNinthChord 
augmentedDominantNinthChord 
halfDiminishedNinthChord 
halfDiminishedMinorNinthChord 
diminishedNinthChord 
diminishedMinorNinthChord 

Constructor & Destructor Documentation

◆ Chord() [1/2]

tracktion::engine::Chord::Chord ( ChordType  type = majorTriad)

◆ Chord() [2/2]

tracktion::engine::Chord::Chord ( juce::Array< int >  steps,
juce::String  symbol 
)

Member Function Documentation

◆ toString()

juce::String tracktion::engine::Chord::toString ( )

◆ fromString()

static Chord tracktion::engine::Chord::fromString ( const juce::String &  )
static

◆ getAllChordType()

static juce::Array<ChordType> tracktion::engine::Chord::getAllChordType ( )
static

◆ getType()

ChordType tracktion::engine::Chord::getType ( ) const

◆ isValid()

bool tracktion::engine::Chord::isValid ( ) const

References invalidChord.

◆ getName()

juce::String tracktion::engine::Chord::getName ( ) const

◆ getShortName()

juce::String tracktion::engine::Chord::getShortName ( ) const

◆ getSymbol()

juce::String tracktion::engine::Chord::getSymbol ( ) const

◆ getSteps() [1/2]

juce::Array<int> tracktion::engine::Chord::getSteps ( ) const

◆ getSteps() [2/2]

juce::Array<int> tracktion::engine::Chord::getSteps ( int  inversion) const

The documentation for this class was generated from the following file: