tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
tracktion::engine::PatternGenerator::ProgressionItem Struct Reference

Public Member Functions

 ProgressionItem (PatternGenerator &, const juce::ValueTree &, bool temporary=false)
 
bool operator== (const ProgressionItem &) const noexcept
 
bool isValid ()
 
void setChordName (juce::String chord)
 
void setChordName (juce::String chord, juce::String pitches)
 
juce::String getChordName () const
 
void setRoot (int root)
 
void setChord (int root, Chord::ChordType)
 
bool isRomanNumeral () const
 
Chord getChord (const Scale &) const
 
juce::String getChordSymbol ()
 
int getRootNote (int key, const Scale &scale)
 

Public Attributes

PatternGeneratorgenerator
 
juce::ValueTree state
 
juce::CachedValue< juce::StringchordName
 
juce::CachedValue< juce::Stringpitches
 
juce::CachedValue< BeatDurationlengthInBeats
 
juce::CachedValue< intoctave
 
juce::CachedValue< intinversion
 

Detailed Description

Definition at line 172 of file tracktion_Musicality.h.

Constructor & Destructor Documentation

◆ ProgressionItem()

tracktion::engine::PatternGenerator::ProgressionItem::ProgressionItem ( PatternGenerator g,
const juce::ValueTree s,
bool  temporary = false 
)

Definition at line 597 of file tracktion_Musicality.cpp.

◆ ~ProgressionItem()

tracktion::engine::PatternGenerator::ProgressionItem::~ProgressionItem ( )
noexcept

Definition at line 617 of file tracktion_Musicality.cpp.

Member Function Documentation

◆ getChord()

Chord tracktion::engine::PatternGenerator::ProgressionItem::getChord ( const Scale scale) const

Definition at line 660 of file tracktion_Musicality.cpp.

◆ getChordName()

juce::String tracktion::engine::PatternGenerator::ProgressionItem::getChordName ( ) const

Definition at line 644 of file tracktion_Musicality.cpp.

◆ getChordSymbol()

juce::String tracktion::engine::PatternGenerator::ProgressionItem::getChordSymbol ( )

Definition at line 697 of file tracktion_Musicality.cpp.

◆ getRootNote()

int tracktion::engine::PatternGenerator::ProgressionItem::getRootNote ( int  key,
const Scale scale 
)

Definition at line 717 of file tracktion_Musicality.cpp.

◆ isRomanNumeral()

bool tracktion::engine::PatternGenerator::ProgressionItem::isRomanNumeral ( ) const

Definition at line 692 of file tracktion_Musicality.cpp.

◆ isValid()

bool tracktion::engine::PatternGenerator::ProgressionItem::isValid ( )

Definition at line 178 of file tracktion_Musicality.h.

◆ operator==()

bool tracktion::engine::PatternGenerator::ProgressionItem::operator== ( const ProgressionItem other) const
noexcept

Definition at line 621 of file tracktion_Musicality.cpp.

◆ setChord()

void tracktion::engine::PatternGenerator::ProgressionItem::setChord ( int  root,
Chord::ChordType  type 
)

Definition at line 654 of file tracktion_Musicality.cpp.

◆ setChordName() [1/2]

void tracktion::engine::PatternGenerator::ProgressionItem::setChordName ( juce::String  chord)

Definition at line 628 of file tracktion_Musicality.cpp.

◆ setChordName() [2/2]

void tracktion::engine::PatternGenerator::ProgressionItem::setChordName ( juce::String  chord,
juce::String  pitches 
)

Definition at line 638 of file tracktion_Musicality.cpp.

◆ setRoot()

void tracktion::engine::PatternGenerator::ProgressionItem::setRoot ( int  root)

Definition at line 649 of file tracktion_Musicality.cpp.

Member Data Documentation

◆ chordName

juce::CachedValue<juce::String> tracktion::engine::PatternGenerator::ProgressionItem::chordName

Definition at line 183 of file tracktion_Musicality.h.

◆ generator

PatternGenerator& tracktion::engine::PatternGenerator::ProgressionItem::generator

Definition at line 180 of file tracktion_Musicality.h.

◆ inversion

juce::CachedValue<int> tracktion::engine::PatternGenerator::ProgressionItem::inversion

Definition at line 186 of file tracktion_Musicality.h.

◆ lengthInBeats

juce::CachedValue<BeatDuration> tracktion::engine::PatternGenerator::ProgressionItem::lengthInBeats

Definition at line 185 of file tracktion_Musicality.h.

◆ octave

juce::CachedValue<int> tracktion::engine::PatternGenerator::ProgressionItem::octave

Definition at line 186 of file tracktion_Musicality.h.

◆ pitches

juce::CachedValue<juce::String> tracktion::engine::PatternGenerator::ProgressionItem::pitches

Definition at line 184 of file tracktion_Musicality.h.

◆ state

juce::ValueTree tracktion::engine::PatternGenerator::ProgressionItem::state

Definition at line 181 of file tracktion_Musicality.h.


The documentation for this struct was generated from the following files: