Sprintf Question

Aug 31, 2006 at 10:40am

Sprintf Question

Hello list,

Is there a way that you could use the sprintf object to output arguments to another object box.
It seems you can only output to a message box.

Is there an external that would allow this functionality?

I wish to prepend a number to a list, but instead of having multiple prepend objects, i would like to have one and define the argument (the number i wish to add) using sprintf.

#27401
Aug 31, 2006 at 11:00am

cant you do this with pak?

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 108 237 48 196617 38 1 2 3;
#P newex 97 208 14 196617 _;
#P number 79 123 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 118 127 34 196617 1 2 3;
#P newex 91 166 61 196617 pak 0 0 0 0;
#P connect 2 0 0 0;
#P connect 1 0 0 1;
#P connect 0 0 3 0;
#P connect 3 0 4 0;
#P window clipboard copycount 5;

Jamie Kidd wrote:
> Hello list,
>
> Is there a way that you could use the sprintf object to output arguments to another object box.
> It seems you can only output to a message box.
>
> Is there an external that would allow this functionality?
>
> I wish to prepend a number to a list, but instead of having multiple prepend objects, i would like to have one and define the argument (the number i wish to add) using sprintf.
>
>
>
>
>
>

#82867
Aug 31, 2006 at 11:21am

Sorry, i’m fairly new to using max.
I’m can’t seem to work it out with pak.

I can’t open the max text you included iin your reply. I’m running Max version 4.5.2, and the new from clipboard feature isn’t available.

The text that usually get to open begins with “max v2″ and ends with “#P pop;”.

Would you be able to send another version of the patch?

#82868
Aug 31, 2006 at 11:46am

here you are:

max v2;
#N vpatcher 100 100 700 500;
#P window setfont “Sans Serif” 9.;
#P message 108 237 48 196617 38 1 2 3;
#P newex 97 208 14 196617 _;
#P number 79 123 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 118 127 34 196617 1 2 3;
#P newex 91 166 61 196617 pak 0 0 0 0;
#P connect 2 0 0 0;
#P connect 0 0 3 0;
#P connect 1 0 0 1;
#P connect 3 0 4 0;
#P pop;

btw, if you compare the 2 textversions you can easily find out how to make future text clippings readible for 452. or just upgrade :)

Jamie Kidd wrote:
> Sorry, i’m fairly new to using max.
> I’m can’t seem to work it out with pak.
>
> I can’t open the max text you included iin your reply. I’m running Max version 4.5.2, and the new from clipboard feature isn’t available.
>
> The text that usually get to open begins with “max v2″ and ends with “#P pop;”.
>
> Would you be able to send another version of the patch?
>
>

#82869
Aug 31, 2006 at 11:58am

Thanks a lot.

My first port of call was to edit the text. Must of missed something out :-)
I can’t upgrade max, because i’m currently using computers at university. Unless of cause i ask the admins!

I do have one question though, what is the “_” object in your patch. The version of max here didn’t recognise it as an object. Is it an external? Obviously the functioning of the patch is dependent on this.

Sorry, if i’m being dumb, but you gotta learn sometime!

#82870
Aug 31, 2006 at 12:02pm

No worries dude, i’ve got it.

Thanks for the help

Take Care

#82871
Sep 4, 2006 at 5:48am

Jamie Kidd wrote:
> I can’t open the max text you included iin your reply. I’m running
> Max version 4.5.2, and the new from clipboard feature isn’t
> available.

The upgrade is free, just download the newest version, its so much
better and convenient…

Stefan


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

#82872
Sep 8, 2006 at 8:49pm

Jamie Kidd wrote:
> Is there a way that you could use the sprintf object to output
> arguments to another object box.

Of course, I do it all the time…

> It seems you can only output to a message box.

Why do you believe that, did you try to send stuf to other objects?

> Is there an external that would allow this functionality?

Yes, sprintf ;-)

> I wish to prepend a number to a list, but instead of having multiple
> prepend objects, i would like to have one and define the argument
> (the number i wish to add) using sprintf.

You can do that as well with sprintf as with prepend. There is a set
message to prepend which would allow you to change the part which will
be prepended.

(All this info is in the help files btw, if you still have problems,
send an example patch, then we can have a look at it…)

Stefan


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

#82873

You must be logged in to reply to this topic.