TracktionEngine
Classes | Public Member Functions | Public Attributes | List of all members
tracktion::engine::StepClip::Pattern Struct Reference

Classes

struct  CachedPattern
 Creates a snapshot of a pattern's notes, velocities and gates to avoid costly property parsing. More...
 

Public Member Functions

 Pattern (StepClip &, const juce::ValueTree &) noexcept
 
 Pattern (const Pattern &) noexcept
 
juce::String getName () const
 
void setName (const juce::String &)
 
bool getNote (int channel, int index) const noexcept
 
void setNote (int channel, int index, bool value)
 
void clear ()
 
void clearChannel (int channel)
 
void insertChannel (int channel)
 
void removeChannel (int channel)
 
void randomiseChannel (int channel)
 
void randomiseSteps ()
 
void shiftChannel (int channel, bool toTheRight)
 
void toggleAtInterval (int channel, int interval)
 
juce::BigInteger getChannel (int index) const
 
void setChannel (int index, const juce::BigInteger &)
 
int getNumNotes () const
 
void setNumNotes (int)
 
BeatDuration getNoteLength () const
 Returns the length of one step as a fraction of a beat. More...
 
void setNoteLength (BeatDuration)
 Sets the length of one step as a fraction of a beat. More...
 
juce::Array< int > getVelocities (int channel) const
 
void setVelocities (int channel, const juce::Array< int > &)
 
int getVelocity (int channel, int index) const
 
void setVelocity (int channel, int index, int value)
 
juce::Array< double > getGates (int channel) const
 
void setGates (int channel, const juce::Array< double > &)
 
double getGate (int channel, int index) const
 
void setGate (int channel, int index, double value)
 
juce::Array< float > getProbabilities (int channel) const
 
void setProbabilities (int channel, const juce::Array< float > &)
 
float getProbability (int channel, int index) const
 
void setProbability (int channel, int index, float value)
 

Public Attributes

StepClipclip
 
juce::ValueTree state
 

Constructor & Destructor Documentation

◆ Pattern() [1/2]

tracktion::engine::StepClip::Pattern::Pattern ( StepClip ,
const juce::ValueTree &   
)
noexcept

◆ Pattern() [2/2]

tracktion::engine::StepClip::Pattern::Pattern ( const Pattern )
noexcept

Member Function Documentation

◆ getName()

juce::String tracktion::engine::StepClip::Pattern::getName ( ) const

◆ setName()

void tracktion::engine::StepClip::Pattern::setName ( const juce::String &  )

◆ getNote()

bool tracktion::engine::StepClip::Pattern::getNote ( int  channel,
int  index 
) const
noexcept

◆ setNote()

void tracktion::engine::StepClip::Pattern::setNote ( int  channel,
int  index,
bool  value 
)

◆ clear()

void tracktion::engine::StepClip::Pattern::clear ( )

◆ clearChannel()

void tracktion::engine::StepClip::Pattern::clearChannel ( int  channel)

◆ insertChannel()

void tracktion::engine::StepClip::Pattern::insertChannel ( int  channel)

◆ removeChannel()

void tracktion::engine::StepClip::Pattern::removeChannel ( int  channel)

◆ randomiseChannel()

void tracktion::engine::StepClip::Pattern::randomiseChannel ( int  channel)

◆ randomiseSteps()

void tracktion::engine::StepClip::Pattern::randomiseSteps ( )

◆ shiftChannel()

void tracktion::engine::StepClip::Pattern::shiftChannel ( int  channel,
bool  toTheRight 
)

◆ toggleAtInterval()

void tracktion::engine::StepClip::Pattern::toggleAtInterval ( int  channel,
int  interval 
)

◆ getChannel()

juce::BigInteger tracktion::engine::StepClip::Pattern::getChannel ( int  index) const

◆ setChannel()

void tracktion::engine::StepClip::Pattern::setChannel ( int  index,
const juce::BigInteger &   
)

◆ getNumNotes()

int tracktion::engine::StepClip::Pattern::getNumNotes ( ) const

◆ setNumNotes()

void tracktion::engine::StepClip::Pattern::setNumNotes ( int  )

◆ getNoteLength()

BeatDuration tracktion::engine::StepClip::Pattern::getNoteLength ( ) const

Returns the length of one step as a fraction of a beat.

◆ setNoteLength()

void tracktion::engine::StepClip::Pattern::setNoteLength ( BeatDuration  )

Sets the length of one step as a fraction of a beat.

◆ getVelocities()

juce::Array<int> tracktion::engine::StepClip::Pattern::getVelocities ( int  channel) const

◆ setVelocities()

void tracktion::engine::StepClip::Pattern::setVelocities ( int  channel,
const juce::Array< int > &   
)

◆ getVelocity()

int tracktion::engine::StepClip::Pattern::getVelocity ( int  channel,
int  index 
) const

◆ setVelocity()

void tracktion::engine::StepClip::Pattern::setVelocity ( int  channel,
int  index,
int  value 
)

◆ getGates()

juce::Array<double> tracktion::engine::StepClip::Pattern::getGates ( int  channel) const

◆ setGates()

void tracktion::engine::StepClip::Pattern::setGates ( int  channel,
const juce::Array< double > &   
)

◆ getGate()

double tracktion::engine::StepClip::Pattern::getGate ( int  channel,
int  index 
) const

◆ setGate()

void tracktion::engine::StepClip::Pattern::setGate ( int  channel,
int  index,
double  value 
)

◆ getProbabilities()

juce::Array<float> tracktion::engine::StepClip::Pattern::getProbabilities ( int  channel) const

◆ setProbabilities()

void tracktion::engine::StepClip::Pattern::setProbabilities ( int  channel,
const juce::Array< float > &   
)

◆ getProbability()

float tracktion::engine::StepClip::Pattern::getProbability ( int  channel,
int  index 
) const

◆ setProbability()

void tracktion::engine::StepClip::Pattern::setProbability ( int  channel,
int  index,
float  value 
)

Member Data Documentation

◆ clip

StepClip& tracktion::engine::StepClip::Pattern::clip

◆ state

juce::ValueTree tracktion::engine::StepClip::Pattern::state

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