Graphical matrix editor…

Jun 25, 2008 at 10:41pm

Graphical matrix editor…

I want to create a control that will let me edit a
matrix of size 256×256. I need to be able to zoom in
and do fine detailed editing. Being from the MSP world,
I am not familiar with all the jitter work that has been done.
Does anyone have a patch/control that allows me to zoom in a
edit a matrix? If not how would I go about doing this?

#38600
Jun 26, 2008 at 9:07pm

maybe something like this… basically just the jit.cellblock helpfile hacked for my purpose.

– Pasted Max Patch, click to expand. –
#134753
Jun 26, 2008 at 9:43pm

Thanks Tyler, I already tried jit.cellblock and matrix control.
They work pretty well for small matrices but if you are
working on something that is 256×256, things get really hard to
see. The matrix values are basically pixels that I am setting
to form a picture. I really need something that lets me zoom in
to edit, and zoom out to see.

I was thinking I could use photoshop to create jpegs and then
load them into Max. But it would be nice to be in the same
environment.

#134754
Jun 26, 2008 at 11:59pm

ji.submarix is your friend to zoom in / view parts of your 256x256matrix. you can easily edit the content of this submatrix using jit.operators ( jit.op ) depending on what you have in mind.

Quote: Anthony Palomba wrote on Thu, 26 June 2008 23:43
—————————————————-
> Thanks Tyler, I already tried jit.cellblock and matrix control.
> They work pretty well for small matrices but if you are
> working on something that is 256×256, things get really hard to
> see. The matrix values are basically pixels that I am setting
> to form a picture. I really need something that lets me zoom in
> to edit, and zoom out to see.
>
> I was thinking I could use photoshop to create jpegs and then
> load them into Max. But it would be nice to be in the same
> environment.
—————————————————-

#134755
Jun 27, 2008 at 12:20am

for starters ( reload to activate [loadbang] ) :

– Pasted Max Patch, click to expand. –
#134756
Jun 27, 2008 at 3:20pm

Wow, this gets me most of the way there.
Thanks karrrlo!

#134757
Jun 27, 2008 at 7:11pm

hey nice k. This would be sweet for a gui interface for referencing a portion of a high res image.

t

#134758
Jun 27, 2008 at 9:06pm

On 27 juin 08, at 02:20, karl-otto von oertzen wrote:

> for starters ( reload to activate [loadbang] ) :

Nice example. Here is a slightly modified version which use
jit.pwindow mouse tracking to position the rectangle.

ej

– Pasted Max Patch, click to expand. –
#134759
Jun 27, 2008 at 10:12pm

you are welcome,some enhancements need of course to be brought, it is one among other solutions, all you need is to reinject the copied/procesed matrix into the right place.
which is a little more tidious, maybe somebody else could chime in :)
may i ask what you are planning to do ? the purpose is probably musical (?). with more info we could be of beter help :)
Wetterberg shared a few patches a while ago, more based on slit scanning, using matrices for score editing.

best

Quote: Anthony Palomba wrote on Fri, 27 June 2008 17:20
—————————————————-
> Wow, this gets me most of the way there.
> Thanks karrrlo!
>
—————————————————-

#134760
Jun 27, 2008 at 11:03pm

Yes, it is a music application. I have been experimenting
with csound’s scanned synthesis. As input, it takes a matrix
that represents a network of mass springs. I wanted
to create a matrix editor that would allow me to easily
edit these mass spring networks.

The next step would be to edit individual pixels. Does
jit.matrix and submatrix support setting individual pixels?

#134761
Jun 28, 2008 at 8:40am

>
>> for starters ( reload to activate [loadbang] ) :
>
>
> Nice example. Here is a slightly modified version which use
> jit.pwindow mouse tracking to position the rectangle.
>

Couldn’t resist joining the fun:) Here’s an addition that changes
zoomed part of the original matrix:

– Pasted Max Patch, click to expand. –
#134762
Jun 30, 2008 at 6:32pm

Those are great! I couldn’t resist putting in my two cents as well. This one uses the function generator to extend the patterns, has an image loader, and lets you use coloration with a ramp time. (The “apply” button for scale/bias doesn’t work with the function, though, since it’s always updating.) Try fiddling with the various function controls, there are some really nice patterns and forms you can create using the dropdown and the scale/offset etc. (noise.voronoi is my favorite, see pic.) Maybe these will be useful for the eventual music elements too.

Still don’t have a way to easily edit individual cells, but it shouldn’t be too tough, and it’s already well past my bedtime. Ah, the forum—causing sleeplessness yet again….!

–CJ

– Pasted Max Patch, click to expand. –
#134763
Jun 30, 2008 at 8:47pm

Hey you guys, thanks for all the help. Here is my
version with pixel editing functionality added…

– Pasted Max Patch, click to expand. –
#134764
Jun 30, 2008 at 10:06pm

Ooops made a mistake, this should work better…

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

You must be logged in to reply to this topic.