|
lmms
Cross-platform music production software
|
#include <AutomationNode.h>
Public Member Functions | |
| AutomationNode () | |
| Dummy constructor for the QMap. | |
| AutomationNode (AutomationClip *clip, float value, int pos) | |
| AutomationNode (AutomationClip *clip, float inValue, float outValue, int pos) | |
| AutomationNode & | operator+= (float f) |
| AutomationNode & | operator-= (float f) |
| AutomationNode & | operator*= (float f) |
| AutomationNode & | operator/= (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 | |
| AutomationClip * | m_clip |
| Clip that this node belongs to. | |
| int | m_pos |
| Time position of this node (matches the timeMap key). | |
| float | m_inValue |
| float | m_outValue |
| float | m_inTangent |
| Slope at each point for calculating spline. | |
| float | m_outTangent |
| Slope at each point for calculating spline. | |
| bool | m_lockedTangents |
| lmms::AutomationNode::AutomationNode | ( | ) |
Dummy constructor for the QMap.
| lmms::AutomationNode::AutomationNode | ( | AutomationClip * | clip, |
| float | value, | ||
| int | pos ) |
| lmms::AutomationNode::AutomationNode | ( | AutomationClip * | clip, |
| float | inValue, | ||
| float | outValue, | ||
| int | pos ) |
|
inline |
Gets the tangent of the left side of the node.
|
inline |
|
inline |
Gets the tangent of the right side of the node.
|
inline |
|
inline |
Gets the offset between inValue and outValue.
|
inline |
Checks if the tangents from the node are locked.
|
inline |
|
inline |
|
inline |
|
inline |
| void lmms::AutomationNode::resetOutValue | ( | ) |
Resets the outValue so it matches inValue.
|
inline |
Sets the clip this node belongs to.
| clip | clip that m_clip will be set to |
|
inline |
Sets the tangent of the left side of the node.
| tangent | A float with the tangent for the inValue side |
| void lmms::AutomationNode::setInValue | ( | float | value | ) |
Sets the inValue of an automation node.
| value | A float value to be assigned |
|
inline |
Locks or Unlocks the tangents from this node.
| b | Whether or not the tangents should be locked |
|
inline |
Sets the tangent of the right side of the node.
| tangent | A float with the tangent for the outValue side |
| void lmms::AutomationNode::setOutValue | ( | float | value | ) |
Sets the outValue of an automation node.
| value | A float value to be assigned |
|
private |
Clip that this node belongs to.
|
private |
Slope at each point for calculating spline.
We might have discrete jumps between curves, so we possibly have two different tangents for each side of the curve. If m_inValue and m_outValue are equal, m_inTangent and m_outTangent are equal too.
|
private |
|
private |
If the tangents were edited manually, this will be true. That way the tangents from this node will not be recalculated. It's set back to false if the tangents are reset.
|
private |
Slope at each point for calculating spline.
We might have discrete jumps between curves, so we possibly have two different tangents for each side of the curve. If m_inValue and m_outValue are equal, m_inTangent and m_outTangent are equal too.
|
private |
|
private |
Time position of this node (matches the timeMap key).