attune.curve.Curve¶
-
class
attune.curve.Curve(setpoints, dependents, name, interaction=None, kind='curve', method=<class 'attune.interpolator._linear.Linear'>, subcurve=None, source_setpoints=None, fmt=None, **kwargs)[source]¶ Central object-type for all OPA tuning curves.
-
__init__(setpoints, dependents, name, interaction=None, kind='curve', method=<class 'attune.interpolator._linear.Linear'>, subcurve=None, source_setpoints=None, fmt=None, **kwargs)[source]¶ Create a
Curveobject.- Parameters
setpoints (attune.Setpoints) – The setpoint destinations for the curve.
dependents (list of Dependent objects) – Dependent positions for each setpoint.
name (str) – Name of curve.
kind (string) – The kind of curve (for saving).
method (interpolation class) – The interpolation method to use.
Methods
__init__(setpoints, dependents, name[, …])Create a
Curveobject.coerce_dependents()Coerce the dependent positions to lie exactly along the interpolation positions.
convert(units, *[, convert_dependents])Convert the setpoints to new units.
copy()Copy the curve object.
get_dependent_positions(setpoint[, units, full])Get the dependent positions for a destination setpoint.
get_limits([units])Get the edges of the curve.
get_source_setpoint(setpoint[, units])Get setpoint of source curve.
interpolate([interpolate_subcurve])Generate the interploator object.
map_setpoints(setpoints[, units])Map the curve onto new tune points using the curve’s own interpolation method.
offset_by(dependent, amount)Offset a dependent by some ammount.
offset_to(dependent, destination, setpoint)Offset a dependent such that it evaluates to destination at setpoint.
plot([autosave, save_path, title])Plot the curve.
read(filepath[, subcurve])save([save_directory, plot, verbose, full])Save the curve.
sort()Attributes
dependent_namesGet dependent names.
dependent_unitsGet dependent names.
-