TracktionEngine
Loading...
Searching...
No Matches
engine::StepClip::Pattern::CachedPattern Struct Reference

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

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

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

Member Function Documentation

◆ getNote()

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

◆ getVelocity()

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

◆ getGate()

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

◆ getProbability()

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

Member Data Documentation

◆ notes

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

◆ velocities

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

◆ gates

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

◆ probabilities

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

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