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::MacroSource Struct Reference
Inheritance diagram for tracktion::engine::MacroSource:
tracktion::engine::AutomationModifierSource tracktion::engine::AutomationSource juce::ReferenceCountedObject

Public Member Functions

 MacroSource (MacroParameter::Assignment::Ptr macroAssignment, MacroParameter &macroParameter)
 
AutomatableParameter::ModifierSourcegetModifierSource () override
 
float getValueAt (TimePosition time) override
 Must return the value of automation at the given time.
 
bool isEnabledAt (TimePosition) override
 Must return if the source is enabled at the given time.
 
void setPosition (TimePosition time) override
 Should set the position of the source to a specific time in the Edit.
 
bool isEnabled () override
 Should return true if the source is enabled at the current position.
 
float getCurrentValue () override
 Should return the current value of the source.
 
- Public Member Functions inherited from tracktion::engine::AutomationModifierSource
 AutomationModifierSource (AutomatableParameter::ModifierAssignment::Ptr ass)
 
- Public Member Functions inherited from tracktion::engine::AutomationSource
 AutomationSource (const juce::ValueTree &v)
 
- Public Member Functions inherited from juce::ReferenceCountedObject
void incReferenceCount () noexcept
 
void decReferenceCount () noexcept
 
bool decReferenceCountWithoutDeleting () noexcept
 
int getReferenceCount () const noexcept
 

Public Attributes

const MacroParameter::Ptr macro
 
- Public Attributes inherited from tracktion::engine::AutomationModifierSource
AutomatableParameter::ModifierAssignment::Ptr assignment
 
- Public Attributes inherited from tracktion::engine::AutomationSource
juce::ValueTree state
 

Additional Inherited Members

- Protected Member Functions inherited from juce::ReferenceCountedObject
 ReferenceCountedObject (const ReferenceCountedObject &) noexcept
 
 ReferenceCountedObject (ReferenceCountedObject &&) noexcept
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &) noexcept
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&) noexcept
 
void resetReferenceCount () noexcept
 

Detailed Description

Definition at line 292 of file tracktion_AutomatableParameter.cpp.

Constructor & Destructor Documentation

◆ MacroSource()

tracktion::engine::MacroSource::MacroSource ( MacroParameter::Assignment::Ptr  macroAssignment,
MacroParameter macroParameter 
)

Definition at line 294 of file tracktion_AutomatableParameter.cpp.

Member Function Documentation

◆ getCurrentValue()

float tracktion::engine::MacroSource::getCurrentValue ( )
overridevirtual

Should return the current value of the source.

Implements tracktion::engine::AutomationSource.

Definition at line 337 of file tracktion_AutomatableParameter.cpp.

◆ getModifierSource()

AutomatableParameter::ModifierSource * tracktion::engine::MacroSource::getModifierSource ( )
overridevirtual

◆ getValueAt()

float tracktion::engine::MacroSource::getValueAt ( TimePosition  )
overridevirtual

Must return the value of automation at the given time.

This is called from the message thread and can be used for drawing etc. so shouldn't reposition the streams.

Implements tracktion::engine::AutomationSource.

Definition at line 306 of file tracktion_AutomatableParameter.cpp.

◆ isEnabled()

bool tracktion::engine::MacroSource::isEnabled ( )
overridevirtual

Should return true if the source is enabled at the current position.

Implements tracktion::engine::AutomationSource.

Definition at line 332 of file tracktion_AutomatableParameter.cpp.

◆ isEnabledAt()

bool tracktion::engine::MacroSource::isEnabledAt ( TimePosition  )
overridevirtual

Must return if the source is enabled at the given time.

This is called from the message thread and can be used for drawing etc. so shouldn't reposition the streams.

Implements tracktion::engine::AutomationSource.

Definition at line 315 of file tracktion_AutomatableParameter.cpp.

◆ setPosition()

void tracktion::engine::MacroSource::setPosition ( TimePosition  )
overridevirtual

Should set the position of the source to a specific time in the Edit.

This must be thread safe as it could be called from multiple threads.

Implements tracktion::engine::AutomationSource.

Definition at line 320 of file tracktion_AutomatableParameter.cpp.

Member Data Documentation

◆ macro

const MacroParameter::Ptr tracktion::engine::MacroSource::macro

Definition at line 342 of file tracktion_AutomatableParameter.cpp.


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