attach_note_to
Specifies the curve to which a note is attached.
Syntax
attach_note_to(index)
Input
- index
- A curve.
Example
{
tmax = 0;
cidx = 0;
pidx = 0;
for (i = 0; i < numcurves(); i++)
y = curvey(i);
cmax = max(y);
if (cmax > tmax)
tmax = cmax;
cidx = i;
pidx = indexofmax(y);
endif
endloop
attach_note_to(cidx)
attach_note_at(pidx)
}
Comments
attach_note_at and attach_note_to are used only for curve notes, otherwise they are ignored.