TracktionEngine
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
engine::StepClip::Pattern Struct Reference

#include <tracktion_StepClip.h>

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.
 
void setNoteLength (BeatDuration)
 Sets the length of one step as a fraction of a beat.
 
juce::Array< intgetVelocities (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< doublegetGates (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< floatgetProbabilities (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]

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

◆ Pattern() [2/2]

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

Member Function Documentation

◆ getName()

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

◆ setName()

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

◆ getNote()

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

◆ setNote()

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

◆ clear()

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

◆ clearChannel()

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

◆ insertChannel()

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

◆ removeChannel()

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

◆ randomiseChannel()

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

◆ randomiseSteps()

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

◆ shiftChannel()

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

◆ toggleAtInterval()

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

◆ getChannel()

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

◆ setChannel()

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

◆ getNumNotes()

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

◆ setNumNotes()

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

◆ getNoteLength()

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

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

◆ setNoteLength()

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

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

◆ getVelocities()

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

◆ setVelocities()

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

◆ getVelocity()

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

◆ setVelocity()

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

◆ getGates()

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

◆ setGates()

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

◆ getGate()

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

◆ setGate()

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

◆ getProbabilities()

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

◆ setProbabilities()

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

◆ getProbability()

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

◆ setProbability()

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

Member Data Documentation

◆ clip

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

◆ state

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

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