Namespaces

Variants
Actions

int

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
(Initial upsert from MAXobjectGM list)
 
Line 2: Line 2:
  
 
==Using the {{maxword|name=int}} object==
 
==Using the {{maxword|name=int}} object==
 +
The int object lets you store an int value in the right inlet and wait for a bang in the left inlet before outputting the value. It can also convert floats to ints, truncating the float. Int takes one argument that will specify a default or starting value.
 +
 +
An int object can be very helpful if you need to store a value and retrieve it later without the possibility of a user changing it within the UI.
  
 
=={{maxword|name=int}} Tutorials==
 
=={{maxword|name=int}} Tutorials==
 +
[http://cycling74.com/docs/max6/dynamic/c74_docs.html#basicchapter16 Max Basic Tutorial 16: Remote Messaging] introduces the int object. While not covered in the tutorial, you can use the send message to an int object to send its stored value to a named receive object.
  
 
=={{maxword|name=int}} Tips and Workarounds==
 
=={{maxword|name=int}} Tips and Workarounds==
 +
You can abbreviate the object name to "i".
 +
 +
You can use int in place of a send object using the send message:
 +
<maxpat>
 +
<pre><code>
 +
----------begin_max5_patcher----------
 +
684.3oc0VErSiCCD8b5WgkOWPwtMkzUqVIz9YrKB4jLs0nD6JaGZ6h3eesmz
 +
.EnERCPEbwQd7nwu4MuYhuaPDMSuFrTxOH+gDEc2fnHzTvPz18QzJw57RgEc
 +
ilqqp.kiNr4LGr1g1+sPQx.RsElUWRloMDCToc.IWqTPtSpUVhvRVAkkjUK.
 +
Uv0BxJoaAws.H+kZAUA4mJQETblAxA4svu7lIUf0JlCs2XozGNcsBuV9Vip5
 +
JopDbHFYaMNyLOKrO973sVVJb4Kjp4W6iuqIqG4OjvFGV4oSBeF4MQt5w.qq
 +
csQtMNxBLm0Y2b1EIs.alV4BnGO5RiTTt6IV4+vSX7yiCVuevfvxv2IseY4J
 +
wFKodYgvy0ufxGRxpcDspbSqKk5bQoeKVBxDp4PwmDyNkEXyD94IdpMN43o1
 +
QSOITqmgbZE80x2CpaXnhgG2tdfjismjaR6M13mayRnIxzPUgRtpGoh+Vy.y
 +
wlJiwBE6hl50akK78jKioODciuL4.y0fRjUB6VYObQ7ELfLnzefH93J0OaTx
 +
CcQ3nmpMxGavdB2weStqQGbAxcrziRGvoGO+bXRoEoFvmSNQXFvth1XDgilN
 +
M7Id6R+jZvJO7eAS1eJbLG+D2mdIFseZrORs06o2KYZea83oeSZ8NfdwQxHx
 +
9QZoS6lfYer1jdHXPJY3WEgCa7jlIOo8V5j78V5XdkI1wuIw0U0ydF2vi+PG
 +
YuCif9fuC6YuIGyif8mRSVcsIu8FZeUA4wTo.rNoB+KvtNwdhSKjEEfZWVqP
 +
ZCx.Li2eAqy3g0E7L9zgG9WK9g2o5E+zhGVW3G1oAOocfedFI9ohm3tfmjdh
 +
ml1ewxk2BF61XhPwOO7FsIrcxPbqT0rEmNQMvsxV+GgVDF+XOmelWsoY3z5z
 +
IzAg649A+GPAQ.bM
 +
-----------end_max5_patcher-----------
 +
</code></pre>
 +
</maxpat>
 +
 +
There are other ways to do what int does, but int offers some useful behaviors.
 +
<maxpat>
 +
<pre><code>
 +
----------begin_max5_patcher----------
 +
903.3oc2X0zbZCCD8L7qPimdjx3uv1za8POj6Mm5joirYATpsDijLPZl7euq
 +
jLARBoXLoPRODGzGd0ae6aWI4662yKWrFTdjuP9AoWu662qmsKSG8ZZ2yqht
 +
tnjprSyKuVqEbuAtg30ULdInsiEzz4BptXNiO6mRnP6rcXz3g9CHgiis+yey
 +
SxMaMjnV+bKwlXWSQ9sedbxl0zMO8cK.ms8xo7YdjaLi9P+9lGCZoyfqZNHO
 +
ZmI0eGmYzgblv83LwdOZdIsBzf7m.mlWZcI+lwlJ3ZNNp809pjQKeUJfw0dC
 +
djI148UreamSP3vMlcgDT.WS0LA+IdUvNdkeyiNQqUfRQmA6kWCOnHIJIXKu
 +
FjcThjHuim65LgkjYga3oSXcTG1vWiG2YcX36PcXThSEb5zZgnpBLHxMlFVa
 +
WCuuOGj.goHzRkfnmCjbfCSYZ72TssiZEHIETNWnIUzegcvWQ4ZXBoXN5bfh
 +
ncuoRKjXuKok0nI419t9pMKYIiCEhZtd2.vdiuSkyxsj9V94kQ7fHCcDG3Jl
 +
lYYnnnWMh6umHt+gyPNt3kSDFG5+uLbo.LVUhgo4zkfi2QnOff6FggJjjPpW
 +
i+oz.cBQLk3xnHBIooXjMbSJYZjcHEk.kiCS4SbZ.EZVEQIp.BFMkzUCIeSs
 +
.JPVo7NSXcgTTfFBsGtP.WwPXXCPfZfEOSgUnAu9JBTBFuP4zRb.EGnTI2X3
 +
oHCNGaCzh4jh6PTLnQ8owLug6UzD8FIZBiSswIWZkoQ6EMoou0hlrgiLPZ7E
 +
pxoiRNgBmoYWhBmcfe51w0ZjLc+zZoiOzo0965izliKlbgDHwiNwS3k4+AQf
 +
vgUHdeQMW1wd3slTplytEb7Rlr.utwJuorQ2JmDFbh0SxB++tdRXvIVPIK5z
 +
JnDjkdYqnrQir6kaNRMR7GkRJcifFEep0bG8Agfd18iernqBzjOEbzUdcDWy
 +
8P6x0lyRNmWa1k9GE95YhVKaOF7y9zTVu2z+SIWknVVrAWa9XQjsDvDPoYbK
 +
P1cRQOYRyYSl.7cUJSXJi3wxS6OL2Z7D0F7Dd9vSba4mfyBdLYtGDOYImM9w
 +
b5sCimfyG+DzB7XtSx4heZidNK97gmj2Y3oM4WYmu7cy0wZmdtK3wUtltXwR
 +
PpZroEJ3td2JjllICrMYbWS6dPdRXIay7selCOpD2bSiaUTKcaAsFir8MqyC
 +
8+Crc5ME
 +
-----------end_max5_patcher-----------
 +
</code></pre>
 +
</maxpat>
  
 
==Third-Party Max externals similar to the {{maxword|name=int}} object==
 
==Third-Party Max externals similar to the {{maxword|name=int}} object==
Line 12: Line 70:
  
 
==People who looked at/used this object also looked at....==
 
==People who looked at/used this object also looked at....==
 +
*{{maxword|name=float}}
 +
*{{maxword|name=message}}
 +
*{{maxword|name=pv}}
 +
*{{maxword|name=value}}
  
 
==Errors or Clarifications==
 
==Errors or Clarifications==

Latest revision as of 16:51, 2 August 2013

Contents

[edit] int online refpage

[edit] Using the int object

The int object lets you store an int value in the right inlet and wait for a bang in the left inlet before outputting the value. It can also convert floats to ints, truncating the float. Int takes one argument that will specify a default or starting value.

An int object can be very helpful if you need to store a value and retrieve it later without the possibility of a user changing it within the UI.

[edit] int Tutorials

Max Basic Tutorial 16: Remote Messaging introduces the int object. While not covered in the tutorial, you can use the send message to an int object to send its stored value to a named receive object.

[edit] int Tips and Workarounds

You can abbreviate the object name to "i".

You can use int in place of a send object using the send message:

-- Pasted Max Patch, click to expand. --

There are other ways to do what int does, but int offers some useful behaviors.

-- Pasted Max Patch, click to expand. --

[edit] Third-Party Max externals similar to the int object

Maxobjects.com listing for the int object

[edit] People who looked at/used this object also looked at....

[edit] Errors or Clarifications

(please list things that you believe to be errors or omissions from the existing refpage)