< Back to IRCAM Forum

Column write/add operations on track matrices

Is it possible
a. to add (append) a column to the matrix of a track?
b. to copy a column from a track matrix to another?
c. combine two tracks by integrating all columns of their matrices in a new track (matrix)?

Combine is meant here as a set operation which doesn’t change cell values (as distinguished from the merge and join messages which create new cell values). I’d like to have a mubu.knn use information from different tracks, e.g. the result of an onseg process and the result of a descriptor analysis, mapped to the segments of the first. (Admittedly, that’s just an idea.)

I didn’t find any indication for either a, b, or c in the documentation (help patches, reference). Does this mean that I overlooked it or that any of these possibilities do not exist?

Happy new year to all!

1 Like

As there are no replies to my question: Is it thus not possible to add a column to a MuBu track matrix or to change an existing one?

Hi Kyl, did you see the matrixcols` message to mubu.track?
In an anaysls context, pipo.const does add a named column, too.
For combining data from different tracks, either the loopback function of mubu.process, or manual iteration would do it.
HTH

Great! These hints help a lot. It seems the information is all there, in the help and tutorial patches, it’s only sometimes difficult to find it. Now I had the idea to search the files with grep on the command line, which is possible because Max patcher files actually are text files.

e.g.
$ find ./MuBuForMax -type f -exec grep -l “matrixcols” {} ;
finds a lot of files, among these MuBu-howto-data-access.maxpat (with the 3-adding-data-with-mubu.record sub-patch)

Diemo, many thanks