@string2proc(s:string)
returns the proc whose name is given in argument. The initial ::
in
the proc identifier can be omitted. Useful to convert directly a string
received through OSC or through a message into a process that can be
instantiated.
For example, assuming that is set in the Max environment to a tab of two elements, the first being a process identifier and the second an integer, then the code
whenever($channel) { :: (@string2proc($channel[0])) ($channel[1]) }
will react to the assignment to $channel
by calling the corresponding processes
with the specified integer.
See also @string2fun, @string2obj and system related functions: @arch_darwin, @arch_linux, @arch_windows, @dumpvar, @exe_child_of, @exe_parent, @gnuplot, @history_length, @loadvalue, @loadvar, @plot, @rplot, @savevalue, @set_osc_handling_double, @set_osc_handling_int64, @set_osc_handling_tab, @specified_duration, @string2fun, @string2obj, @string2proc, @system