TracktionEngine
|
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. More... | |
void | setNoteLength (BeatDuration) |
Sets the length of one step as a fraction of a beat. More... | |
juce::Array< int > | getVelocities (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< double > | getGates (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< float > | getProbabilities (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 | |
StepClip & | clip |
juce::ValueTree | state |
|
noexcept |
|
noexcept |
juce::String tracktion::engine::StepClip::Pattern::getName | ( | ) | const |
void tracktion::engine::StepClip::Pattern::setName | ( | const juce::String & | ) |
|
noexcept |
void tracktion::engine::StepClip::Pattern::setNote | ( | int | channel, |
int | index, | ||
bool | value | ||
) |
void tracktion::engine::StepClip::Pattern::clear | ( | ) |
void tracktion::engine::StepClip::Pattern::clearChannel | ( | int | channel | ) |
void tracktion::engine::StepClip::Pattern::insertChannel | ( | int | channel | ) |
void tracktion::engine::StepClip::Pattern::removeChannel | ( | int | channel | ) |
void tracktion::engine::StepClip::Pattern::randomiseChannel | ( | int | channel | ) |
void tracktion::engine::StepClip::Pattern::randomiseSteps | ( | ) |
void tracktion::engine::StepClip::Pattern::shiftChannel | ( | int | channel, |
bool | toTheRight | ||
) |
void tracktion::engine::StepClip::Pattern::toggleAtInterval | ( | int | channel, |
int | interval | ||
) |
juce::BigInteger tracktion::engine::StepClip::Pattern::getChannel | ( | int | index | ) | const |
void tracktion::engine::StepClip::Pattern::setChannel | ( | int | index, |
const juce::BigInteger & | |||
) |
int tracktion::engine::StepClip::Pattern::getNumNotes | ( | ) | const |
void tracktion::engine::StepClip::Pattern::setNumNotes | ( | int | ) |
BeatDuration tracktion::engine::StepClip::Pattern::getNoteLength | ( | ) | const |
Returns the length of one step as a fraction of a beat.
void tracktion::engine::StepClip::Pattern::setNoteLength | ( | BeatDuration | ) |
Sets the length of one step as a fraction of a beat.
juce::Array<int> tracktion::engine::StepClip::Pattern::getVelocities | ( | int | channel | ) | const |
void tracktion::engine::StepClip::Pattern::setVelocities | ( | int | channel, |
const juce::Array< int > & | |||
) |
int tracktion::engine::StepClip::Pattern::getVelocity | ( | int | channel, |
int | index | ||
) | const |
void tracktion::engine::StepClip::Pattern::setVelocity | ( | int | channel, |
int | index, | ||
int | value | ||
) |
juce::Array<double> tracktion::engine::StepClip::Pattern::getGates | ( | int | channel | ) | const |
void tracktion::engine::StepClip::Pattern::setGates | ( | int | channel, |
const juce::Array< double > & | |||
) |
double tracktion::engine::StepClip::Pattern::getGate | ( | int | channel, |
int | index | ||
) | const |
void tracktion::engine::StepClip::Pattern::setGate | ( | int | channel, |
int | index, | ||
double | value | ||
) |
juce::Array<float> tracktion::engine::StepClip::Pattern::getProbabilities | ( | int | channel | ) | const |
void tracktion::engine::StepClip::Pattern::setProbabilities | ( | int | channel, |
const juce::Array< float > & | |||
) |
float tracktion::engine::StepClip::Pattern::getProbability | ( | int | channel, |
int | index | ||
) | const |
void tracktion::engine::StepClip::Pattern::setProbability | ( | int | channel, |
int | index, | ||
float | value | ||
) |
StepClip& tracktion::engine::StepClip::Pattern::clip |
juce::ValueTree tracktion::engine::StepClip::Pattern::state |