TracktionEngine
Loading...
Searching...
No Matches
engine::Chord Class Reference

#include <tracktion_Musicality.h>

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< ChordType > getAllChordType ()

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]

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

References majorTriad.

Referenced by fromString().

◆ Chord() [2/2]

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

Member Function Documentation

◆ toString()

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

◆ fromString()

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

References Chord().

◆ getAllChordType()

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

◆ getType()

ChordType engine::Chord::getType ( ) const

◆ isValid()

bool engine::Chord::isValid ( ) const

References invalidChord.

◆ getName()

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

◆ getShortName()

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

◆ getSymbol()

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

◆ getSteps() [1/2]

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

◆ getSteps() [2/2]

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

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