Looking for info on a few CurveEditor virtuals

There are a few virtuals that I can’t figure out how to implement:
int curvePoint (int index, float newCurve)
int getCurveNameOffset()
void updateFromTrack()


curvePoint is a really bad name. It should be something like setPointCurveValue. Just forward it to your underlying curve and return the same index e.g. automationCurve.setCurveValue (index, newCurve);

You can see how int getCurveNameOffset() is used in CurveEditor::paint, I think to have it hard right you can just return the width of your editor.

You can use updateFromTrack to update the data being shown, usually by calling Track::getCurrentlyShownAutoParam for automation.

1 Like