A newer version of Max is available. Click here to access the latest version of the documentation

jit.str.fromsymbol Reference

Convert Max symbol to Jitter string matrix

jit.str.fromsymbol

Description

Use the jit.str.tosymbol object to convert Max symbols into string matrices. An optional argument can be used to specify the length of the 1-dim matrix.

Examples

Discussion

A word on Jitter strings: In Jitter, any 1 plane char matrix may be manipulated as a string. String matrices may have one or two dimensions. If 1-dimensional, the string is considered terminated at the first 0 (like in C). If 2-dimensional, the string may be considered a multi-line string, with the first 0 encountered on each row treated as a carriage return. The jit.textfile and jit.str.op objects will accept and output 2D matrices. jit.str.fromsymbol only outputs 1D matrices and jit.str.tosymbol only accepts 1D matrices (or the first row of a 2D matrix).

Matrix Operator

matrix inputs:0, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
out n/a 1 1 1 1 1 char

More about Matrix Operators

The Jitter MOP

MOP Arguments

MOP Attributes

MOP Messages

Attributes

Common Box Attributes

Messages

int

Any int sent to the jit.str.fromsymbol object is converted to a string matrix and sent out the left outlet.

float

Any float sent to the jit.str.fromsymbol object is converted to a string matrix and sent out the left outlet.

list

Any list sent to the jit.str.fromsymbol object is converted to a string matrix and sent out the left outlet.

anything

Any symbol input to the jit.str.fromsymbol object is converted to a string matrix and sent out the left outlet.

See Also

Name Description
jit.str.op
jit.str.tosymbol
jit.str.regexp
jit.textfile
Tutorial 20: Importing and Exporting Single Matrices Tutorial 20: Importing and Exporting Single Matrices