Namespaces

Variants
Actions

pack

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
 
Line 2: Line 2:
  
 
==Using the {{maxword|name=pack}} object==
 
==Using the {{maxword|name=pack}} object==
{{maxword|name=pack}} is one of many max objects that helps us to format input messages into output lists, a vital part of constructing and controlling many patches.  
+
{{maxword|name=pack}} is one of many max objects that helps us to format input messages into output lists, a vital part of constructing and controlling many patches. For each element you want in the list, you need to type an argument specifying the type of input (int, float, or symbol) that will be used in that position and the object will generate an inlet for that element.
  
 
=={{maxword|name=pack}} Tutorials==
 
=={{maxword|name=pack}} Tutorials==
Line 65: Line 65:
 
<pre><code>
 
<pre><code>
 
----------begin_max5_patcher----------
 
----------begin_max5_patcher----------
2766.3oc0c88aiaiD94j+JXMxgtKfqgHon9w8zk8kE2gBbE6c2SWOTHayDyM
+
2807.3oc0c00aiaiE84jeEbLxhlAvqgHo9beY2LuLXWzEawrsO0tnP1lIlSj
xhFhzwIsn+ueCIkbbxFGQmUlVFMvdsLkzvONyvY9lQt+wkWLZp7AtZD5uh9u
+
EMDosSlh9eeujTxwIicLchLkLZpMrrj4kGx68dtGRo4Ot7hAiEOvjCP+Mzuh
nKt3Ot7hKrGxbfKZ97EiVV7vrxBkcXilIWtjWoGM18cZ9CZ6wQ+rTqPxaPaJ
+
t3h+3xKtvbH8Atn9yWLXd9CSJxklSaPIasX7WGLz9UJ1CJygWTwVvJmht8tI
dTgzRzxh63H8BNRUrjiJEpsmyM02N0bNQShZNxpB8rEhpa+sZ9LsSZRguDka
+
hBQUy2uHWMYFu7teuhMQYaFJNcDIZHJAGLJXHBGXdi.uh9e0W0shRkj+Ml9B
dglSsuAuh9esWBYkVI9ctYrj3sWmp0KEUkbsUTwOcP4Zc6QaGpXtUrkS+5Og
+
vD3qsGtb4bdYASYLD7SGTrT8xiZOj5wELaiNXvlebvRkrRUthKJ21rH3Zyhp
o3Q6bcq.409cWWKJJGY9h+7xKMuL1SLZIWoJtk+MXzM2NSVJqGs+YcRNdB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JNpWYNYtLZk4uYOYXWsG+DbNi3p83mfyYTWsG+DbNKzU6A2irm.+Mel1yrG
IwVZ3xSxz7j9IOgw4LMwW4ILNmoLekmv3bl5ylWDb3b+fGVdCS8EdByxkWLF
+
ROydv8L6oeEd17Ly5vYSCx7nE4Vooj9lEEbHFhy4SWH3kpZccSvQlM..I1rT
akmvnNSX9JOgwbmD6q7DHhGyFVbPLvJ3fWbFEPx8ethwdjm.xZsOvS.ITyKl
+
EIYwO8wmZqVrh+dFsR2JpE6QEZbhoqGYx4Rn8H+UmTLwU6wOohiwtZOdZ7Jz
eBm7bD0kc01qX0p640plKoUPFsr3qtRoZ+eBMiVJpbezVhwQ076Esi2Vb5QE
+
U6g5o4yoN4g4yX6tDCB6QMhcym273X2WVDwMLxeE39x1ZeVjG0ezQLJ1iiZm
0yVHz7Y500t5H9PVxnKM2m+7x+O.mCsl4
+
RIQsqIb9hEqXUx5eRioLXd9WsKAu4eNL.JFk1OZVZ5AUrU7ly2roFFjWMYFW
 +
wlnVVYW+4GRiGbotc9yK++rlAXUG
 
-----------end_max5_patcher-----------
 
-----------end_max5_patcher-----------
 
</code></pre>
 
</code></pre>
Line 195: Line 196:
 
*{{maxword|name=join}}
 
*{{maxword|name=join}}
 
*{{maxword|name=pak}}
 
*{{maxword|name=pak}}
 +
*{{maxword|name=regexp}}
 
*{{maxword|name=swap}}
 
*{{maxword|name=swap}}
 
*{{maxword|name=thresh}}
 
*{{maxword|name=thresh}}

Latest revision as of 00:35, 24 July 2013

Contents

[edit] pack online refpage

[edit] Using the pack object

pack is one of many max objects that helps us to format input messages into output lists, a vital part of constructing and controlling many patches. For each element you want in the list, you need to type an argument specifying the type of input (int, float, or symbol) that will be used in that position and the object will generate an inlet for that element.

[edit] pack Tutorials

pack is first introduced in Max Basic Tutorial 9: Mouse Drawing. In this tutorial pack is used to create 4 and 6 element lists to allow different drawing commands to be sent to the lcd object.

[edit] pack Tips and Workarounds

Many users are initially confused by the difference between pack and pak (the latter is often pronounced "pock" to distinguish between them). With pack only the left output triggers the ouput list, while pak is triggered when input is received in any inlet. This patch modifies the mouse drawing tutorial patch to illustrate the problem with using pak's where you should be using pack's

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

There are many different ways to put lists together in Max. Here are a bunch of different ways to change the color of a button:

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

Did you know that pack can send its list directly to any named receive object?

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

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

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