Video display and composing engine for JUCE
Loading...
Searching...
No Matches
ClipDescriptor::ClipParameterController Class Reference

#include <foleys_ClipDescriptor.h>

+ Inheritance diagram for ClipDescriptor::ClipParameterController:

Public Member Functions

 ClipParameterController (TimeCodeAware &timeReference)
 
void setClip (const ParameterMap &parameters, juce::ValueTree node, juce::UndoManager *undoManager)
 
AutomationMapgetParameters () override
 Grant access to the individual parameters.
 
int getNumParameters () const override
 
double getValueAtTime (juce::Identifier paramID, double pts, double defaultValue) override
 Return the value of the parameter at a certain time point.
 
double getCurrentPTS () const override
 Since the automation values are time dependent, every instance, that inherits ControllableBase needs a way to tell the local time (presentation time stamp).
 
void updateAutomations (double pts)
 
- Public Member Functions inherited from ControllableBase
 ControllableBase (TimeCodeAware &reference)
 
virtual ~ControllableBase ()=default
 
void addListener (Listener *)
 
void removeListener (Listener *)
 
void notifyParameterAutomationChange (const ParameterAutomation *p)
 This notifies all ProcessorController::Listeners about an automation change, so they can adapt accordingly by redrawing the curves or invalidating pre-rendered video frames.
 
TimeCodeAwaregetTimeReference ()
 Grant access to the time reference of this ControllableBase.
 
const TimeCodeAwaregetTimeReference () const
 

Constructor & Destructor Documentation

◆ ClipParameterController()

ClipParameterController ( TimeCodeAware timeReference)

Member Function Documentation

◆ setClip()

void setClip ( const ParameterMap parameters,
juce::ValueTree  node,
juce::UndoManager *  undoManager 
)

◆ getParameters()

AutomationMap & getParameters ( )
overridevirtual

Grant access to the individual parameters.

Implements ControllableBase.

◆ getNumParameters()

int getNumParameters ( ) const
overridevirtual

Implements ControllableBase.

◆ getValueAtTime()

double getValueAtTime ( juce::Identifier  paramID,
double  pts,
double  defaultValue 
)
overridevirtual

Return the value of the parameter at a certain time point.

Since the parameter can be used from outside the parameter (i.e. for scale, position etc.) There needs to be a default value, in case the ControllableBase doesn't provide that parameter.

Parameters
paramIDthe identifier of the parameter
ptsthe timestamp in seconds in clip time
defaultValuethe value that is returned, if the parameter is not set up

Implements ControllableBase.

◆ getCurrentPTS()

double getCurrentPTS ( ) const
overridevirtual

Since the automation values are time dependent, every instance, that inherits ControllableBase needs a way to tell the local time (presentation time stamp).

The PTS refers to the audio clock master, video is rendered asynchronously and may have a different PTS

Implements ControllableBase.

◆ updateAutomations()

void updateAutomations ( double  pts)

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