Forums > MaxMSP

Changing argument in a 'poly' object.

April 12, 2006 | 1:53 pm

Hi, I have a poly object with arguments 8 and 1.

I would like to change these arguments in a user friendly way (ie. not by editing the object manually).

How would I do this?

Thanks, James.


April 12, 2006 | 5:50 pm

Scripting. See Max Tutorials 46&47, and the relevant Topics section.

– P.

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter

iCE: Sequencing, Recording & |home | chez nous|
Interface Building for |bei uns | i nostri|
Max/MSP Extremely cool http://www.castine.de

http://www.dspaudio.com/


April 15, 2006 | 5:46 pm

Thanks.

I can see how to delete and replace an object, but I can’t see how to edit one directly. Am I missing something?


April 16, 2006 | 5:56 am

jimdrake wrote:
> I can see how to delete and replace an object, but I can’t see how to
> edit one directly. Am I missing something?

Yes

Stefan

P.S. I might have missed what your problem is, but you didn’t describe
that too clearly…

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

————————-x—-
–_____———–|———–
–(_|_ —-|—–|—–()—-
– _|_)—-|—–()———–
———-()————x—–

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-57 42 91 09


April 16, 2006 | 7:05 am

OK, sorry if I’m not clear.

This solves my problem:

max v2;
#N vpatcher 235 367 835 767;
#P origin 78 0;
#P window setfont "Sans Serif" 9.;
#P message 121 153 30 196617 bang;
#P hidden message 401 178 111 196617 script delete POLY_01;
#N thispatcher;
#Q end;
#P hidden newobj 121 207 61 196617 thispatcher;
#P hidden message 121 178 270 196617 script new POLY_01 newex 79 105 80 196617 poly 10 1;
#P newex 79 105 80 196617 poly 8 1;
#P objectname POLY_01;
#P hidden connect 4 0 1 0;
#P hidden fasten 3 0 2 0 406 198 126 198;
#P hidden connect 1 0 2 0;
#P hidden fasten 4 0 3 0 126 173 406 173;
#P pop;

However, I would like to know if there is a method for directly altering an object. This script indirectly alters the object by deleting at and creating a new one.

Thanks, James.


April 16, 2006 | 11:16 am

>> However, I would like to know if there is a method for directly altering an object. This script indirectly alters the object by deleting at and creating a new one.

whats an argument? an [i] object can be an argument.
the number in the bpatcher inspector is the _default
argument. which means it should not be changed.
but why not make inlets and change the [i] argument
by sending messages?

or: how would do it to a [p]? do the same to the bpatcher.


April 17, 2006 | 3:16 pm

> or: how would do it to a [p]? do the same to the bpatcher.

sorry of course that was a nonsense advice
for a quesiton which haas not been asked.

it should read: _unlike_ [p] patches, _poly~ abstractions_
accept arguments like regular objects do.

happy to confuse,

-110


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