#include <foleys_ClipDescriptor.h>
Inheritance diagram for ClipDescriptor::ClipParameterController:Public Member Functions | |
| ClipParameterController (TimeCodeAware &timeReference) | |
| void | setClip (const ParameterMap ¶meters, juce::ValueTree node, juce::UndoManager *undoManager) |
| AutomationMap & | getParameters () 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. | |
| TimeCodeAware & | getTimeReference () |
| Grant access to the time reference of this ControllableBase. | |
| const TimeCodeAware & | getTimeReference () const |
| ClipParameterController | ( | TimeCodeAware & | timeReference | ) |
| void setClip | ( | const ParameterMap & | parameters, |
| juce::ValueTree | node, | ||
| juce::UndoManager * | undoManager | ||
| ) |
Referenced by ClipDescriptor::ClipDescriptor(), and ClipDescriptor::ClipDescriptor().
|
overridevirtual |
Grant access to the individual parameters.
Implements ControllableBase.
|
overridevirtual |
Implements ControllableBase.
|
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.
| paramID | the identifier of the parameter |
| pts | the timestamp in seconds in clip time |
| defaultValue | the value that is returned, if the parameter is not set up |
Implements ControllableBase.
|
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.
| void updateAutomations | ( | double | pts | ) |
Referenced by ClipDescriptor::updateAudioAutomations(), and ClipDescriptor::updateVideoAutomations().