tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tracktion::engine::QuantisationType Class Reference
Inheritance diagram for tracktion::engine::QuantisationType:
juce::ValueTree::Listener

Public Member Functions

 QuantisationType (const juce::ValueTree &, juce::UndoManager *)
 
 QuantisationType (const QuantisationType &)
 
QuantisationTypeoperator= (const QuantisationType &)
 
bool operator== (const QuantisationType &) const
 
void applyQuantisationToSequence (juce::MidiMessageSequence &, Edit &, TimePosition sequenceStartOffset)
 
bool isEnabled () const
 this type may represent "no quantising"
 
void setType (const juce::String &newTypeName)
 
juce::String getType (bool translated) const
 
int getTimecodeSnapTypeLevel (bool &isTriplet) const noexcept
 Returns the TimecodeSnapType level for the current quantisation type.
 
float getProportion () const
 the proportion 0..1 of the amount to quantise stuff by.
 
void setProportion (float prop)
 
bool isQuantisingNoteOffs () const
 If false, quantising a note on will keep the note its original length.
 
void setIsQuantisingNoteOffs (bool isQuantising)
 
BeatPosition roundBeatToNearest (BeatPosition beatNumber) const
 
BeatPosition roundBeatUp (BeatPosition beatNumber) const
 
BeatPosition roundBeatToNearestNonZero (BeatPosition beatNumber) const
 
TimePosition roundToNearest (TimePosition, const Edit &) const
 
TimePosition roundUp (TimePosition, const Edit &) const
 

Static Public Member Functions

static juce::StringArray getAvailableQuantiseTypes (bool translated)
 
static juce::String getDefaultType (bool translated)
 

Public Attributes

juce::ValueTree state
 
juce::CachedValue< juce::StringtypeName
 
juce::CachedValue< floatproportion
 
juce::CachedValue< bool > quantiseNoteOffs
 

Detailed Description

Definition at line 17 of file tracktion_QuantisationType.h.

Constructor & Destructor Documentation

◆ QuantisationType() [1/3]

tracktion::engine::QuantisationType::QuantisationType ( )

Definition at line 41 of file tracktion_QuantisationType.cpp.

◆ QuantisationType() [2/3]

tracktion::engine::QuantisationType::QuantisationType ( const juce::ValueTree vt,
juce::UndoManager um 
)

Definition at line 46 of file tracktion_QuantisationType.cpp.

◆ ~QuantisationType()

tracktion::engine::QuantisationType::~QuantisationType ( )
override

Definition at line 51 of file tracktion_QuantisationType.cpp.

◆ QuantisationType() [3/3]

tracktion::engine::QuantisationType::QuantisationType ( const QuantisationType other)

Definition at line 56 of file tracktion_QuantisationType.cpp.

Member Function Documentation

◆ applyQuantisationToSequence()

void tracktion::engine::QuantisationType::applyQuantisationToSequence ( juce::MidiMessageSequence ms,
Edit ed,
TimePosition  sequenceStartOffset 
)

Definition at line 238 of file tracktion_QuantisationType.cpp.

◆ getAvailableQuantiseTypes()

juce::StringArray tracktion::engine::QuantisationType::getAvailableQuantiseTypes ( bool  translated)
static

Definition at line 205 of file tracktion_QuantisationType.cpp.

◆ getDefaultType()

juce::String tracktion::engine::QuantisationType::getDefaultType ( bool  translated)
static

Definition at line 216 of file tracktion_QuantisationType.cpp.

◆ getProportion()

float tracktion::engine::QuantisationType::getProportion ( ) const

the proportion 0..1 of the amount to quantise stuff by.

Definition at line 48 of file tracktion_QuantisationType.h.

◆ getTimecodeSnapTypeLevel()

int tracktion::engine::QuantisationType::getTimecodeSnapTypeLevel ( bool &  isTriplet) const
noexcept

Returns the TimecodeSnapType level for the current quantisation type.

Because the TimecodeSnapType level means something different if the time sig is triplets, this also needs to return the triplet type.

Definition at line 129 of file tracktion_QuantisationType.cpp.

◆ getType()

juce::String tracktion::engine::QuantisationType::getType ( bool  translated) const

Definition at line 119 of file tracktion_QuantisationType.cpp.

◆ isEnabled()

bool tracktion::engine::QuantisationType::isEnabled ( ) const

this type may represent "no quantising"

Definition at line 143 of file tracktion_QuantisationType.cpp.

◆ isQuantisingNoteOffs()

bool tracktion::engine::QuantisationType::isQuantisingNoteOffs ( ) const

If false, quantising a note on will keep the note its original length.

If true (the default), note offs will be quantised to the same grid.

Definition at line 54 of file tracktion_QuantisationType.h.

◆ operator=()

QuantisationType & tracktion::engine::QuantisationType::operator= ( const QuantisationType other)

Definition at line 64 of file tracktion_QuantisationType.cpp.

◆ operator==()

bool tracktion::engine::QuantisationType::operator== ( const QuantisationType o) const

Definition at line 74 of file tracktion_QuantisationType.cpp.

◆ roundBeatToNearest()

BeatPosition tracktion::engine::QuantisationType::roundBeatToNearest ( BeatPosition  beatNumber) const

Definition at line 174 of file tracktion_QuantisationType.cpp.

◆ roundBeatToNearestNonZero()

BeatPosition tracktion::engine::QuantisationType::roundBeatToNearestNonZero ( BeatPosition  beatNumber) const

Definition at line 184 of file tracktion_QuantisationType.cpp.

◆ roundBeatUp()

BeatPosition tracktion::engine::QuantisationType::roundBeatUp ( BeatPosition  beatNumber) const

Definition at line 179 of file tracktion_QuantisationType.cpp.

◆ roundToNearest()

TimePosition tracktion::engine::QuantisationType::roundToNearest ( TimePosition  time,
const Edit edit 
) const

Definition at line 153 of file tracktion_QuantisationType.cpp.

◆ roundUp()

TimePosition tracktion::engine::QuantisationType::roundUp ( TimePosition  time,
const Edit edit 
) const

Definition at line 158 of file tracktion_QuantisationType.cpp.

◆ setIsQuantisingNoteOffs()

void tracktion::engine::QuantisationType::setIsQuantisingNoteOffs ( bool  isQuantising)

Definition at line 55 of file tracktion_QuantisationType.h.

◆ setProportion()

void tracktion::engine::QuantisationType::setProportion ( float  prop)

Definition at line 148 of file tracktion_QuantisationType.cpp.

◆ setType()

void tracktion::engine::QuantisationType::setType ( const juce::String newTypeName)

Definition at line 38 of file tracktion_QuantisationType.h.

Member Data Documentation

◆ proportion

juce::CachedValue<float> tracktion::engine::QuantisationType::proportion

Definition at line 67 of file tracktion_QuantisationType.h.

◆ quantiseNoteOffs

juce::CachedValue<bool> tracktion::engine::QuantisationType::quantiseNoteOffs

Definition at line 68 of file tracktion_QuantisationType.h.

◆ state

juce::ValueTree tracktion::engine::QuantisationType::state

Definition at line 65 of file tracktion_QuantisationType.h.

◆ typeName

juce::CachedValue<juce::String> tracktion::engine::QuantisationType::typeName

Definition at line 66 of file tracktion_QuantisationType.h.


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