LMMS
Loading...
Searching...
No Matches
lmms::AutomationNode Class Reference

#include <AutomationNode.h>

Public Member Functions

 AutomationNode ()
 AutomationNode (AutomationClip *clip, float value, int pos)
 AutomationNode (AutomationClip *clip, float inValue, float outValue, int pos)
AutomationNodeoperator+= (float f)
AutomationNodeoperator-= (float f)
AutomationNodeoperator*= (float f)
AutomationNodeoperator/= (float f)
const float getInValue () const
void setInValue (float value)
 Sets the inValue of an automation node.
const float getOutValue () const
void setOutValue (float value)
 Sets the outValue of an automation node.
void resetOutValue ()
 Resets the outValue so it matches inValue.
const float getValueOffset () const
 Gets the offset between inValue and outValue.
const float getInTangent () const
 Gets the tangent of the left side of the node.
void setInTangent (float tangent)
 Sets the tangent of the left side of the node.
const float getOutTangent () const
 Gets the tangent of the right side of the node.
void setOutTangent (float tangent)
 Sets the tangent of the right side of the node.
const bool lockedTangents () const
 Checks if the tangents from the node are locked.
void setLockedTangents (bool b)
 Locks or Unlocks the tangents from this node.
void setClip (AutomationClip *clip)
 Sets the clip this node belongs to.

Private Attributes

AutomationClipm_clip
int m_pos
float m_inValue
float m_outValue
float m_inTangent
float m_outTangent
bool m_lockedTangents

Constructor & Destructor Documentation

◆ AutomationNode() [1/3]

lmms::AutomationNode::AutomationNode ( )

◆ AutomationNode() [2/3]

lmms::AutomationNode::AutomationNode ( AutomationClip * clip,
float value,
int pos )

◆ AutomationNode() [3/3]

lmms::AutomationNode::AutomationNode ( AutomationClip * clip,
float inValue,
float outValue,
int pos )

Member Function Documentation

◆ getInTangent()

const float lmms::AutomationNode::getInTangent ( ) const
inline

Gets the tangent of the left side of the node.

Returns
Float with the tangent from the inValue side

◆ getInValue()

const float lmms::AutomationNode::getInValue ( ) const
inline

◆ getOutTangent()

const float lmms::AutomationNode::getOutTangent ( ) const
inline

Gets the tangent of the right side of the node.

Returns
Float with the tangent from the outValue side

◆ getOutValue()

const float lmms::AutomationNode::getOutValue ( ) const
inline

◆ getValueOffset()

const float lmms::AutomationNode::getValueOffset ( ) const
inline

Gets the offset between inValue and outValue.

Returns
Float representing the offset between inValue and outValue

◆ lockedTangents()

const bool lmms::AutomationNode::lockedTangents ( ) const
inline

Checks if the tangents from the node are locked.

◆ operator*=()

AutomationNode & lmms::AutomationNode::operator*= ( float f)
inline

◆ operator+=()

AutomationNode & lmms::AutomationNode::operator+= ( float f)
inline

◆ operator-=()

AutomationNode & lmms::AutomationNode::operator-= ( float f)
inline

◆ operator/=()

AutomationNode & lmms::AutomationNode::operator/= ( float f)
inline

◆ resetOutValue()

void lmms::AutomationNode::resetOutValue ( )

Resets the outValue so it matches inValue.

◆ setClip()

void lmms::AutomationNode::setClip ( AutomationClip * clip)
inline

Sets the clip this node belongs to.

Parameters
AutomationClip*clip that m_clip will be set to

◆ setInTangent()

void lmms::AutomationNode::setInTangent ( float tangent)
inline

Sets the tangent of the left side of the node.

Parameters
Floatwith the tangent for the inValue side

◆ setInValue()

void lmms::AutomationNode::setInValue ( float value)

Sets the inValue of an automation node.

Parameters
Floatvalue to be assigned

◆ setLockedTangents()

void lmms::AutomationNode::setLockedTangents ( bool b)
inline

Locks or Unlocks the tangents from this node.

◆ setOutTangent()

void lmms::AutomationNode::setOutTangent ( float tangent)
inline

Sets the tangent of the right side of the node.

Parameters
Floatwith the tangent for the outValue side

◆ setOutValue()

void lmms::AutomationNode::setOutValue ( float value)

Sets the outValue of an automation node.

Parameters
Floatvalue to be assigned

Member Data Documentation

◆ m_clip

AutomationClip* lmms::AutomationNode::m_clip
private

◆ m_inTangent

float lmms::AutomationNode::m_inTangent
private

◆ m_inValue

float lmms::AutomationNode::m_inValue
private

◆ m_lockedTangents

bool lmms::AutomationNode::m_lockedTangents
private

◆ m_outTangent

float lmms::AutomationNode::m_outTangent
private

◆ m_outValue

float lmms::AutomationNode::m_outValue
private

◆ m_pos

int lmms::AutomationNode::m_pos
private

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