Max 5 API Reference
A patch cord. More...
![]() |
Functions | |
t_max_err | jpatchline_get_startpoint (t_object *l, double *x, double *y) |
Retrieve a patchline's starting point. | |
t_max_err | jpatchline_get_endpoint (t_object *l, double *x, double *y) |
Retrieve a patchline's ending point. | |
long | jpatchline_get_nummidpoints (t_object *l) |
Determine the number of midpoints (segments) in a patchline. | |
t_object * | jpatchline_get_box1 (t_object *l) |
Return the object box from which a patchline originates. | |
long | jpatchline_get_outletnum (t_object *l) |
Return the outlet number of the originating object box from which a patchline begins. | |
t_object * | jpatchline_get_box2 (t_object *l) |
Return the destination object box for a patchline. | |
long | jpatchline_get_inletnum (t_object *l) |
Return the inlet number of the destination object box to which a patchline is connected. | |
t_object * | jpatchline_get_nextline (t_object *b) |
Given a patchline, traverse to the next patchline in the (linked) list. | |
char | jpatchline_get_hidden (t_object *l) |
Determine if a patch line is hidden. | |
t_max_err | jpatchline_set_hidden (t_object *l, char c) |
Set a patchline's visibility. | |
t_max_err | jpatchline_get_color (t_object *l, t_jrgba *prgba) |
Get the color of a patch line. | |
t_max_err | jpatchline_set_color (t_object *l, t_jrgba *prgba) |
Set the color of a patch line. |
A patch cord.
Return the object box from which a patchline originates.
l | A pointer to the patchline's instance. |
Return the destination object box for a patchline.
l | A pointer to the patchline's instance. |
Get the color of a patch line.
l | A patchline instance. | |
prgba | The address of a valid t_jrgba struct that will be filled with the color values of the patch line. |
Retrieve a patchline's ending point.
l | A pointer to the patchline's instance. | |
x | The address of a variable to hold the x-coordinate of the ending point's position upon return. | |
y | The address of a variable to hold the y-coordinate of the ending point's position upon return. |
char jpatchline_get_hidden | ( | t_object * | l | ) |
Determine if a patch line is hidden.
l | A patchline instance. |
long jpatchline_get_inletnum | ( | t_object * | l | ) |
Return the inlet number of the destination object box to which a patchline is connected.
l | A pointer to the patchline's instance. |
Given a patchline, traverse to the next patchline in the (linked) list.
b | A patchline instance. |
long jpatchline_get_nummidpoints | ( | t_object * | l | ) |
Determine the number of midpoints (segments) in a patchline.
l | A pointer to the patchline's instance. |
long jpatchline_get_outletnum | ( | t_object * | l | ) |
Return the outlet number of the originating object box from which a patchline begins.
l | A pointer to the patchline's instance. |
Retrieve a patchline's starting point.
l | A pointer to the patchline's instance. | |
x | The address of a variable to hold the x-coordinate of the starting point's position upon return. | |
y | The address of a variable to hold the y-coordinate of the starting point's position upon return. |
Set the color of a patch line.
l | A patchline instance. | |
prgba | The address of a valid t_jrgba struct containing the color to use. |