TracktionEngine
|
Creates a snapshot of a pattern's notes, velocities and gates to avoid costly property parsing. More...
#include <tracktion_StepClip.h>
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 |
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.
tracktion::engine::StepClip::Pattern::CachedPattern::CachedPattern | ( | const Pattern & | , |
int | channel | ||
) |
|
noexcept |
juce::BigInteger tracktion::engine::StepClip::Pattern::CachedPattern::notes |
juce::Array<int> tracktion::engine::StepClip::Pattern::CachedPattern::velocities |
juce::Array<double> tracktion::engine::StepClip::Pattern::CachedPattern::gates |
juce::Array<float> tracktion::engine::StepClip::Pattern::CachedPattern::probabilities |