Feature request: Shifting rows and columns in matrixctrl

Jun 1, 2009 at 12:53pm

Feature request: Shifting rows and columns in matrixctrl

It’s not really very difficult to shift rows or columns with zl rot, but it does take a few objects and a bit of work. I tried making the simplest version I could in the patch below, but it’s still kind of busy for the results. A direct message to [matrixctrl] like “shiftrow ” would be great, where the shift amount works just like [zl rot] and excess values wrap.

It might also be nice to have a fill command:
fillrow ,
though this is pretty easy with [uzi] and [%].

If there’s a simpler way to do the shifting that I’m missing, then by all means…

– Pasted Max Patch, click to expand. –
#44195
Jun 1, 2009 at 5:35pm

Here’s how I would do the row and column shifts in max. Like you said: the “fill” command can easily be acieved using [uzi] and [%]. The method in my patch isn’t perfect. As soon as you change which row/column you are shifting it will set the current state to the default rather than using the original which might be what you wanted. If you wanted to elaborate on this it would probably be easier to code it in javascript where storing arrays of arrays is easier.

lh

– Pasted Max Patch, click to expand. –
#158863

You must be logged in to reply to this topic.