add(_:toParameter:andChannel:)
Adds a keyframe at the given time.
Declaration
func add(_ keyframe: UnsafePointer<FxKeyframe>, toParameter parameterID: Int, andChannel channelIndex: Int) -> (any Error)?Parameters
- keyframe:
An FxKeyframe structure describing the keyframe you wish to add to the parameter.
- parameterID:
The ID of the parameter you wish to add a keyframe to.
- channelIndex:
The index of the channel of the parameter you wish to add a keyframe to. For parameters that only have one channel (sliders, angle knobs, checkboxes, etc.) this will be
0. For compound parameters, it will be the sub-channel. For example, if you wish to keyframe the red channel of a color, it would be channel index0, whereas the green channel would be channel index1, etc.
See Also
Instance Methods
channelCount(_:forParameter:)keyframe(_:atOrAfter:fromParameter:andChannel:)keyframe(_:atOrBefore:fromParameter:andChannel:)keyframe(_:forParameter:channel:andIndex:)keyframeCount(_:forParameter:andChannel:)parameter(_:channel:hasKeyframe:at:)removeAllKeyframes(forParameter:andChannel:)removeKeyframe(at:fromParameter:andChannel:)setKeyframeIndex(_:with:forParameter:andChannel:)