Forums > Jitter

Graphical matrix editor…

June 25, 2008 | 10:41 pm

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?


June 26, 2008 | 9:07 pm

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

– Pasted Max Patch, click to expand. –

June 26, 2008 | 9:43 pm

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.


June 26, 2008 | 11:59 pm

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.
—————————————————-


June 27, 2008 | 12:20 am

for starters ( reload to activate [loadbang] ) :

– Pasted Max Patch, click to expand. –

June 27, 2008 | 3:20 pm

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


June 27, 2008 | 7:11 pm

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

t


June 27, 2008 | 9:06 pm

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. –

June 27, 2008 | 10:12 pm

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!
>
—————————————————-


June 27, 2008 | 11:03 pm

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?


June 28, 2008 | 8:40 am

>
>> 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. –

June 30, 2008 | 6:32 pm

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. –

June 30, 2008 | 8:47 pm

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

– Pasted Max Patch, click to expand. –

June 30, 2008 | 10:06 pm

Ooops made a mistake, this should work better…

– Pasted Max Patch, click to expand. –

Viewing 14 posts - 1 through 14 (of 14 total)