Forums > MaxMSP

Just Saving Everything!

December 12, 2006 | 11:01 pm

Hello,

I


December 12, 2006 | 11:11 pm


December 12, 2006 | 11:25 pm

thanks, it looks like i have to

tom


December 12, 2006 | 11:28 pm


December 13, 2006 | 10:14 am

why does everything in the world have to be so complicated ;)

I dont have the time to get fully into this…I managed to save some settings with audopattr working on autoname – but it doesnt save buttons I push, and nothing I change in bpatcher windows…

uh

good night!

Tom


December 13, 2006 | 10:35 am

> why does everything in the world have to be so complicated ;)

It doesn’t; just a matter of adjusting expectations.

Try this:

max v2;
#N vpatcher 201 22 506 278;
#P window setfont "Sans Serif" 10.;
#P newex 169 106 58 9109514 r allpresets;
#N comlet preset;
#P inlet 150 106 15 0;
#P number 137 83 35 10 1 20 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 120 83 15 0;
#P newex 120 106 27 9109514 int;
#P message 120 130 45 9109514 store $1;
#N vpreset 15;
#P preset 120 152 109 29;
#N vpatcher 16 45 321 240;
#N vpreset 15;
#P preset 82 104 109 29;
#P window setfont "Sans Serif" 10.;
#P number 47 57 35 10 1 15 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 30 57 15 0;
#P newex 30 80 27 9109514 int;
#P message 30 104 45 9109514 store $1;
#P newex 30 154 59 9109514 s allpresets;
#P comment 88 58 128 9109514 set desired preset number and bang to store;
#P comment 196 105 100 9109514 click on stored preset boxes to recall preset;
#P connect 5 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 2 0;
#P fasten 7 1 2 0 136 144 35 144;
#P connect 6 0 4 1;
#P fasten 3 0 7 0 35 127 78 127 78 96 87 96;
#P pop;
#P newobj 19 99 49 9109514 p presets;
#P window linecount 3;
#P comment 18 48 61 9109514 "master" preset control;
#P comment 117 37 100 9109514 put this group into all subpatchers and the main patcher;
#P connect 6 0 5 0;
#P connect 5 0 4 0;
#P fasten 4 0 3 0 125 148 125 148;
#P fasten 8 0 3 0 155 149 125 149;
#P fasten 9 0 3 0 174 149 125 149;
#P connect 7 0 5 1;
#P pop;

Have fun.


December 13, 2006 | 2:56 pm

Thomas Tinkhauser wrote:
> why does everything in the world have to be so complicated ;)
>
> I dont have the time to get fully into this…I managed to save some
> settings with audopattr working on autoname – but it doesnt save
> buttons I push, and nothing I change in bpatcher windows…

well, put an autopattr into the bpatchers and don’t forget to name the
objects you want to store.
But late at night its better to go to bed, next morning the world will
be less complicated… ;-)

the pattr system isn’t the easiest, but just saving the last state is
not at all complicated (you just have to know how to do it… ;-)

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


December 14, 2006 | 9:53 am

Dayton wrote:
>>why does everything in the world have to be so complicated ;)
>
> It doesn’t; just a matter of adjusting expectations.
>
> Try this:

But in his case even pattr is simpler. My advise if you want serious
preset handling/state saving avoid the preset object. If you just want
it quick and dirty, the preset object is wonderfull…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


December 14, 2006 | 10:52 am

Quote: Stefan Tiedje wrote on Thu, 14 December 2006 02:53
—————————————————-
> But in his case even pattr is simpler. My advise if you want serious
> preset handling/state saving avoid the preset object. If you just want
> it quick and dirty, the preset object is wonderfull…

Without a doubt. However, "quick and dirty" is usually where people begin. Particularly for prototyping it is useful to use [preset] but, as S.T. states, it is well worth the effort to move up to using [pattr] and [pattrstorage].


December 15, 2006 | 9:38 pm

Not to mention that using interpolation with the preset object would require a whole separate series of number boxes and line objects to interpolate before the numbers get sent to their final destination. Which *does* allow for some interesting effects (esp. with the grain length in line), but they’re more to manage than with a well-designed pattr.

Presets are great for quick n’ dirty, or for keeping track of gates or other "radio-type" selections where the numbers are all 0 or 1, and interpolation doesn’t make any sense.

The little preset object is also a good way to have a selectable array of numbers that is small (maybe to choose a pattr preset or something). It’s not used for anything except to send a number from the middle outlet in this case. Just be sure to hook a dummy number box to the left outlet or preset will try to remember everything on the screen!

If you want a little bigger selector, use matrix~ with "one cell per matrix" selected. However, you need to deal with the problem of clicking the same cell and having it disappear…. use a "sel 0 –> set 1" kind of thing. Works well and gives a somewhat larger and clearer representation of the current number selected.

–CJ


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