Forums > MaxMSP

Needing help with change ip

February 5, 2011 | 7:39 pm

hi everybody, i would like to know if there is anyway to change the ip in the patch i have created (see the image)

thanxx!

[attachment=153234,1773]

Attachments:
  1. Changeip.JPG

February 5, 2011 | 8:08 pm

sprintf is good for this sort of thing:

– Pasted Max Patch, click to expand. –

February 5, 2011 | 8:47 pm

or
pak i . i . i . i
and then sprintf

:)


February 5, 2011 | 9:28 pm

thanksss guys!!!!!


February 5, 2011 | 9:36 pm

one question more.. in the object "sprintf %ld.%ld.%ld.%ld", what is the meaning of "%ld"???


February 5, 2011 | 10:45 pm

%ld represent an integer. You can also use the combine object for this, maybe it’s easier.

– Pasted Max Patch, click to expand. –

February 5, 2011 | 10:53 pm

the ld stands for ‘long decimal’ (I think!) and is used for integers, if you were using floating point numbers you would use %f


February 6, 2011 | 3:06 am

Very curious emmanuel! thanxx for everybody. Scatalogic thanx for your explanation.


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