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

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

Public Member Functions

 CachedPattern (const Pattern &, int channel)
 
bool getNote (int index) const noexcept
 
int getVelocity (int index) const noexcept
 
double getGate (int index) const noexcept
 
float getProbability (int index) const noexcept
 

Public Attributes

juce::BigInteger notes
 
juce::Array< int > velocities
 
juce::Array< double > gates
 
juce::Array< float > probabilities
 

Detailed Description

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

Obviously if you change a property this will become invalid.

Constructor & Destructor Documentation

◆ CachedPattern()

tracktion::engine::StepClip::Pattern::CachedPattern::CachedPattern ( const Pattern ,
int  channel 
)

Member Function Documentation

◆ getNote()

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

◆ getVelocity()

int tracktion::engine::StepClip::Pattern::CachedPattern::getVelocity ( int  index) const
noexcept

◆ getGate()

double tracktion::engine::StepClip::Pattern::CachedPattern::getGate ( int  index) const
noexcept

◆ getProbability()

float tracktion::engine::StepClip::Pattern::CachedPattern::getProbability ( int  index) const
noexcept

Member Data Documentation

◆ notes

juce::BigInteger tracktion::engine::StepClip::Pattern::CachedPattern::notes

◆ velocities

juce::Array<int> tracktion::engine::StepClip::Pattern::CachedPattern::velocities

◆ gates

juce::Array<double> tracktion::engine::StepClip::Pattern::CachedPattern::gates

◆ probabilities

juce::Array<float> tracktion::engine::StepClip::Pattern::CachedPattern::probabilities

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