Namespaces

Variants
Actions

float

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
(Initial upsert from MAXobjectAF list)
 
Line 2: Line 2:
  
 
==Using the {{maxword|name=float}} object==
 
==Using the {{maxword|name=float}} object==
 +
The float object lets you store a float value in the right inlet and wait for a bang in the left inlet before outputting the value. It can also convert ints to floats. Float takes one argument that will specify a default or starting value.
 +
 +
A float 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=float}} Tutorials==
 
=={{maxword|name=float}} Tutorials==
 +
[http://cycling74.com/docs/max6/dynamic/c74_docs.html#basicchapter16 Max Basic Tutorial 16: Remote Messaging] introduces the float object. While not covered in the tutorial, you can use the send message to float to send its stored value to a named receive object.
  
 
=={{maxword|name=float}} Tips and Workarounds==
 
=={{maxword|name=float}} Tips and Workarounds==
 +
You can abbreviate the object name to "f".
 +
 +
You can use float in place of a send object using the send message:
 +
<maxpat>
 +
<pre><code>
 +
----------begin_max5_patcher----------
 +
709.3oc0WssahCCD84vWgkelVk6ITsZkp1OicqpbRF.WkXircJvV0+801Iok
 +
xkRHPQaewHOdXlyblyLz9xHGbFeEHwn6P+F437xHGGqIiAm16N3Jxp7Rhz5F
 +
NmWUALEdbyaJXkxZ+WDFJCP0RXZcIZJWfDPEWAnbNiA4JJmIQDIZITVhVNGX
 +
FWKPKop4H0b.8GrDXEnevHUPwMBHGnOC+TaFUARIYFzkwRpNb7ZlMs9sFY0U
 +
TVInrXzq03TwrLyc2acasrfnxmSYydTGeUSUG3NQ+LxKzb5mFa9HH3VWzCuG
 +
ZdspK1cQhVXqZd1S2jD2Asoblxfe6S2KnjxMeQR+q8EO+2wi.zUshXXmMwTC
 +
Z7rfws8.8f4675nQliwmY259xkj0RT8hBhtEsSmZLJqVg3rx0ctTxyIk5q1N
 +
WFgMCJ9pZHSRLUbj+sQ5Fhazo2PBcu3Mjj.CLRMP5r5GZZUwY3Oij9DMZifv
 +
2s67.Th2dnDutb13mZ8BnI1XSyD+VjN.A3mZ6CI9mshbZIWi1SlABshBuDOq
 +
13XLf+dX.e7agWnkDJP7HvHYkvlpnCKX1g2zEBQOXsMAtsvZ.TzVK7dan0tf
 +
rZcah2CA5ebBrQBkZ6idomjDJ.e5jzg4kiLv4GbgzaLXoF86vkmEIF1PetCY
 +
PLDOTo1kThcVSgQSF7PXz2lgvCnaTnLzzAxaoS5mrYeDW7.jMVNY7+Oxmvnl
 +
4FydmApeR9tqeDe5Bb2iRd8UCsuUOoWzE3avIVer+cfa8uRXqCi8ORTRdsHu
 +
KCcPC8doT.REkY+MgMcJ4CNMmVT.rMYsBpzHErU79aY8FOw8AOAWW73cL7D9
 +
Am9RwSTe3m3qG+D1G73e8viWevS30COAek3oY7mrXwyfP1FSKTzaDehKLWiG
 +
auRYMWsamvB3YZm+AVKDgdsmRuyqVzrbZUZLdjIOuN5eRsw6AB
 +
-----------end_max5_patcher-----------
 +
</code></pre>
 +
</maxpat>
 +
 +
Like many things in Max, there are many ways to do what float does, but it offers particular behaviors that can be useful.
 +
<maxpat>
 +
<pre><code>
 +
----------begin_max5_patcher----------
 +
886.3oc2X0zbZCCD8L7qPimdjlwefA6dqG5gbu4TmLcDl0fRskXjDejlI+26
 +
JI6DWBDLlDZnWLnUxqd6aWsODOzum2DwFP4Q9B4Gjd8dneudVSFC8pF2yqjt
 +
IqfprKyKSTVBbs2.2bZXi1Z+6yAIPXJBsPIH54.YBvgblF+NUaMrTARRFkyE
 +
ZRI8WnA9ZJWCSIYyo7YfhncuoRKjn0UzhknK4Va2bc8VVv3PlXI2tugUF4KK
 +
Y7BPaAYPkwb4rIlw9W4WYYAUmMmwm8SIjocg833HbZxvfTyGgICMeDg1H29r
 +
uEK00Nu1Uro13VL4tOG3GTCtbAWyokfctuJYzhlynX+1NSP3yHRBJjOoZlf2
 +
DUCSZfJ+pGjaMuzi86adLnkYrIK0ZA260HpcPKoIN9H0xGg90O2CqD7RVIcb
 +
8d5Vm99Efy2dSvzs2SdZOTPbpaSShNYJHuPfv8Xof.+pv1wAwGhCB2AGj38j
 +
+kXYgFj+D3zIEPyRo8Wz7BlCiDJd3aaJb6hqNvQkfRQmA6jjBOXcRznfm4nf
 +
jipNI0634g8G5spnJJ1+eTQUMekl10Zp.e+KlhpWQsPYTHlSWAtV9HRGPvVU
 +
nJARXDKjvd+JMPmRD4DGaSDRRUgpUqgTvzXvPxJ.JGUWn7oNAHE5XEQIJABJ
 +
kHoquh7M0BHCogh6MZJKjhLzQn+XnDDWwPfXSWfZfEQ4vZzg2bMAJ.SLnbBY
 +
b.UlPcpIFGmiEYyww.MaNI6dDECpj9zXR4pcpXE8VoXENbrUhHxoeM9XTrF2
 +
AAqy1Qjp36DNhLJ8h4DR2TmqKA5t57nCpNe9x2IwmnL6n3Kl7MGViH9EMDyO
 +
Vc25CIU5tAcnBHxqqDyaIgzsZlDWbeJ8H7+OuGQEEcB8HhS9vzinNe27mYdb
 +
463QWL46NRQUI5t2FMd3k5sUdpOpBzjOEbrMSqntnvgc8RLwguoWhoAiXWi8
 +
mPt0+SiMNL1+aZRIVJyp2g56WQdNTlBJMiauWTiEYuTQiUMmMcJval1mxTlJ
 +
AaHu6LVqATRK.jE0AmG7Lts347vOFg4ChmQmQ7zF9YKP+thm31hmyS8iQY4v
 +
347c9JtMmu1Bzuq3I7CFdF1F7D1Q735WSWrXEHUU9zBET.6NgzLbz.6PF2Mz
 +
Jm3IgUr50a+OB7nRTmRihTKkN0jMIi75a1mG6+G.SxWoJA
 +
-----------end_max5_patcher-----------
 +
</code></pre>
 +
</maxpat>
  
 
==Third-Party Max externals similar to the {{maxword|name=float}} object==
 
==Third-Party Max externals similar to the {{maxword|name=float}} object==
Line 12: Line 69:
  
 
==People who looked at/used this object also looked at....==
 
==People who looked at/used this object also looked at....==
 +
*{{maxword|name=int}}
 +
*{{maxword|name=message}}
 +
*{{maxword|name=pv}}
 +
*{{maxword|name=value}}
  
 
==Errors or Clarifications==
 
==Errors or Clarifications==

Latest revision as of 16:56, 2 August 2013

Contents

[edit] float online refpage

[edit] Using the float object

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

A float 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] float Tutorials

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

[edit] float Tips and Workarounds

You can abbreviate the object name to "f".

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

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

Like many things in Max, there are many ways to do what float does, but it offers particular behaviors that can be useful.

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

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

Maxobjects.com listing for the float 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)