Namespaces

Variants
Actions

pv

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
(Initial upsert)
({{maxword|name=pv}} Tips and Workarounds)
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
==Using the {{maxword|name=pv}} object==
 
==Using the {{maxword|name=pv}} object==
 +
The pv object allows you to share data with all other pv objects that have the same name in the same patch and its subpatchers (including abstractions and bpatchers). Any message received in the inlet stores that message in all instances of pv with the same name. Sending a bang to any particular pv will output the message from that instance of the object.
  
 
=={{maxword|name=pv}} Tutorials==
 
=={{maxword|name=pv}} Tutorials==
  
 
=={{maxword|name=pv}} Tips and Workarounds==
 
=={{maxword|name=pv}} Tips and Workarounds==
 +
Like the {{maxword|name=int}} and {{maxword|name=float}} objects, you can use pv to store a value and then retreive it with a bang. Unlike the other two, pv works with lists and symbols as well as ints and floats. This patch uses this capability along with the {{maxword|name=route}} object to distinguish between ints, floats, (numerical) lists, and symbols.
 +
<maxpat>
 +
<pre><code>
 +
----------begin_max5_patcher----------
 +
1270.3oc0Y0zaiaCD8r8uhA5TKfqA0218Taus.8TA5ohhEzRz1ZiLo.IkcbW
 +
r+2K4PYGmDqMQxeDs.IVRTTjy7l2v4IpuNdj2BwiLkG7qv+.iF80wiFgMYaX
 +
Ty0i71PeLqjpvt4sgoTzULuIt6oYOpw1WrJSTJjf+T6eD6uG5CudSAujowAH
 +
nowJpNacAe0mkrLsy.BHjojIPXbh8fuu6vroD3eeZjD05CCkeSqE4nEHV7ke
 +
wmjbXVWJ3ZNcCCu2uKKnkGtiaHz6qXt40y63DXeHUw+g2vOXJw152FO19yjK
 +
DfBhg4wcER7iCPPHI1dHlzGDw+iFQjpxhblry9dj+IzAmuGD1pueXjZHhMiA
 +
BX1eHMmc7oOAilm5czLjF.RyjelwoKJQulzJHMAApqHG44IQ98JIxOxk8zbn
 +
GTljqKi4fsJYJFWS0EB9yr2TzBCCOFkHVisGn5xRgw2NKf42NfklLM9krLxs
 +
fkkPdOrrN.4F+kp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Oej6Z
 +
ZO1uWBPtKlC94qNYtZCfBtaVjEfBFN.z6IdY+xCCHywt882M5S36f9L+tBO9
 +
CqnEY3DsRFZ45QACLC5ky04snv6WHKjLvPnfzAWHKdvYQCOLZ96xhBueY92T
 +
6woZjVU0rsmnwXMEid5u39V3ISvKK3tKQUsdR11hC8G2WSOpzHWVazJWKcZZ
 +
ebVh2X677sw+Of405ZC
 +
-----------end_max5_patcher-----------
 +
</code></pre>
 +
</maxpat>
 +
 +
Sometimes you may want a local pv object to update immediately and have the others wait for a bang. Here we use {{maxword|name=trigger}} to make it happen:
 +
<maxpat>
 +
<pre><code>
 +
----------begin_max5_patcher----------
 +
574.3oc2V9rbZCCDF+r8SwN9Lkw1.oPu0mgdrSlLx1KfxXK4QdM+oYx6dWIi
 +
CTBv3XRHs8hvZWYouueRZwO46Ejn2fUAv2feBddO4644BYC3squWPgXSZtnx
 +
MrfTcQApnfAM4HbC4h+CcARxBrBVivZgh.RCk7aAzRDx0ohbHSPBPxuelTPX
 +
9VHol.shentjygf.LXglenbErdIp.IAKPphSjHTKF1tp4RElpqUtkNdWPUcg
 +
Tkyi1FLZWv4lEI19gCC2EoTPoKkpEOXvTpw4i4jvHWSXyObKb+94UWSsSb6z
 +
Hyb1Vm73WlcWqtlqUjRTftTe2HE4GloR9KWln3gg1nO66aaFzQxOOWyRI3Rt
 +
8bdKZjyVSrT.hCOq4hOg4FG7xjaXqQn4ATIRxwCow4MdyrSaKwF8XsgfO9.A
 +
1czfWDxmFfhhldsHJ9+bD4NCMNtu7Y5j+Y3iBWyJ9UE2HHAl2Kp8UGuhB6C1
 +
5PYkWgFGQFzhn2Szv0pIspm2t3COSZ7+EoPzInvzK6U392usY9ecJ1lxnhCT
 +
uGxu0JIgi61d9ob6rdrmeKtAbknY70BlYgeTfwMF2WTbz2A4rgM9eRqJcsIs
 +
cEZumB6sRFVQRkfj7kk8Cxp+CFzRYVFpNr7WlrxVQz43Suu8lzSzeQ5YRG3y
 +
QP7CUOS6hdlc6zyrtb9I9lomiNZbF8Ltm5o45lnrbEZp1MmNovkgdTarcuaf
 +
qqT0z0UMHvfqjsiejKhvvUYHtDSsooXvF9Pjuccd1+2.hpjAbC
 +
-----------end_max5_patcher-----------
 +
</code></pre>
 +
</maxpat>
  
 
==Third-Party Max externals similar to the {{maxword|name=pv}} object==
 
==Third-Party Max externals similar to the {{maxword|name=pv}} 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=int}}
 +
*{{maxword|name=message}}
 +
*{{maxword|name=universal}}
 +
*{{maxword|name=value}}
 +
*{{maxword|name=mxj}} net.maxhole
  
 
==Errors or Clarifications==
 
==Errors or Clarifications==
Line 17: Line 81:
 
(please list things that you believe to be errors or omissions from the existing refpage)
 
(please list things that you believe to be errors or omissions from the existing refpage)
  
 +
[[Category:Max Refpage extensions (N - T)]]
 
[[Category:Refpage extensions]]
 
[[Category:Refpage extensions]]

Latest revision as of 20:53, 2 August 2013

Contents

[edit] pv online refpage

[edit] Using the pv object

The pv object allows you to share data with all other pv objects that have the same name in the same patch and its subpatchers (including abstractions and bpatchers). Any message received in the inlet stores that message in all instances of pv with the same name. Sending a bang to any particular pv will output the message from that instance of the object.

[edit] pv Tutorials

[edit] pv Tips and Workarounds

Like the int and float objects, you can use pv to store a value and then retreive it with a bang. Unlike the other two, pv works with lists and symbols as well as ints and floats. This patch uses this capability along with the route object to distinguish between ints, floats, (numerical) lists, and symbols.

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

Sometimes you may want a local pv object to update immediately and have the others wait for a bang. Here we use trigger to make it happen:

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

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

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