I’m sure this applies to most patches, but I can’t think of a way around it – My patch will be absolutely enormous if I continue as I am! I hope what I am about to explain makes sence.
I need to insert a variable number into a message. At the moment I have to copy every sub patcher for every sample number (what I call a ‘lane’), changing all the instances of a ‘lane’ number in every single patch.
For example, I’m sending individual velocities for each step of each lane like so:
I need the "1" of "lane1" to be a variable:
you need to use abstractions, not subpatchers, and # changeable arguments.
for abstractions look at the "max 4.5 tutorials and topics" manual,
Tutorial 27, (your object); for # arguments look at page 417
(Arguments: $ and #, Changeable Arguments to Objects)
I find Open Sound Control to be very handy when organizing this many parameters. You can build a heirarcical name space and use OSC-route to parse things the properly. Also there are wildcard characters that can be handy.