Forums > MaxMSP

sswap object


f.e
February 2, 2006 | 8:09 am

just to be sure : there’s no object that swaps all kind of data
(including symbols) ?! there’s swap for int, fswap for floats… then
i’ll have to write a sswap for dealing with symbols if i need one, will i ?

best

f.e


February 2, 2006 | 8:49 am

Try this :

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 272 43 50 196617 1 2 3;
#P message 80 38 50 196617 1 2 3;
#P message 280 76 30 196617 d e f;
#P message 62 69 31 196617 a b c;
#P newex 41 158 68 196617 loadmess set;
#B color 4;
#N vpatcher 20 74 303 353;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 50 74 67 196617 t b l;
#P newex 50 130 36 196617 zl reg;
#P inlet 50 45 15 0;
#P inlet 175 44 15 0;
#P outlet 107 174 15 0;
#P outlet 50 174 15 0;
#P connect 3 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 0 0;
#P connect 2 0 4 1;
#P connect 5 1 1 0;
#P pop;
#P newobj 123 103 126 196617 p swap_anything;
#B color 5;
#P message 239 74 22 196617 titi;
#P message 123 74 29 196617 toto;
#P message 123 194 50 196617 titi;
#P newex 123 155 62 196617 prepend set;
#P message 239 194 50 196617 1 2 3;
#P newex 239 155 62 196617 prepend set;
#P connect 11 0 6 1;
#P connect 10 0 6 0;
#P connect 9 0 6 1;
#P connect 8 0 6 0;
#P connect 7 0 3 0;
#P connect 7 0 1 0;
#P connect 4 0 6 0;
#P connect 5 0 6 1;
#P connect 6 1 0 0;
#P connect 6 0 2 0;
#P connect 2 0 3 0;
#P connect 0 0 1 0;
#P window clipboard copycount 12;

ej



MJ
February 2, 2006 | 8:50 am

like this

max v2;
#N vpatcher 314 259 914 659;
#P button 109 194 15 0;
#P outlet 41 255 15 0;
#P outlet 187 258 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 41 223 60 196617 pv swappie;
#P newex 185 127 60 196617 pv swappie;
#P inlet 185 89 15 0;
#P inlet 109 91 15 0;
#P fasten 6 0 3 0 114 216 46 216;
#P connect 3 0 5 0;
#P connect 0 0 6 0;
#P connect 1 0 2 0;
#P fasten 0 0 4 0 114 175 192 175;
#P pop;



MJ
February 2, 2006 | 9:35 am

LOL
who wil make the shortest sswap object……

-mj



f.e
February 2, 2006 | 10:18 am

Thanks Emmanuel & Martin ! Both solutions work great ! Anyway, when i’ll
find time for, i’ll do a few lines of code to build a handy external for
this.

best regards

f.e


February 3, 2006 | 9:38 am

On around Feb 2, 2006, at 10:35, MJ said something like:
> LOL
> who wil[l] make the shortest sswap object……

From time to time there have been exchanges on the list with people
showing off different approaches to solve the same problem with fewer
and fewer objects and patch cords. These are instructive and people
have the opportunity to pick up techniques of which they had not been
aware.

In general more useful than a lot of the other rambling at the moment.

So, laugh if you will, but then see if you can do better!

Tot gauw!
P.

————– http://www.bek.no/~pcastine/Litter/ ————–
Peter Castine | ^
| Litter Power & Litter Bundle for Jitter
pcastine@gmx.net |
pcastine@bek.no | iCE: Sequencing, Recording, and Interface Building
4-15@kagi.com | for Max/MSP
| Extremely cool
| http://www.dspaudio.com
| http://www.dspaudio.com/software/software.html


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