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::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< intvelocities
 
juce::Array< doublegates
 
juce::Array< floatprobabilities
 

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.

Definition at line 118 of file tracktion_StepClip.h.

Constructor & Destructor Documentation

◆ CachedPattern()

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

Definition at line 344 of file tracktion_StepClipPattern.cpp.

Member Function Documentation

◆ getGate()

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

Definition at line 368 of file tracktion_StepClipPattern.cpp.

◆ getNote()

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

Definition at line 352 of file tracktion_StepClipPattern.cpp.

◆ getProbability()

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

Definition at line 379 of file tracktion_StepClipPattern.cpp.

◆ getVelocity()

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

Definition at line 357 of file tracktion_StepClipPattern.cpp.

Member Data Documentation

◆ gates

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

Definition at line 129 of file tracktion_StepClip.h.

◆ notes

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

Definition at line 127 of file tracktion_StepClip.h.

◆ probabilities

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

Definition at line 130 of file tracktion_StepClip.h.

◆ velocities

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

Definition at line 128 of file tracktion_StepClip.h.


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