pv
Description
Creates a value that is shared between objects, but only within a single patcher. Unlike the value object, pv objects that share the same name only share the same value if they are in the same patcher, or one of its subpatches.
Examples

Discussion
The pv also object cannot be the receiver of a message sent remotely by a message box (the first symbol after a semicolon).
Arguments
name [symbol]
Obligatory. The first argument provides an identifying name. All pv objects with that name within the patcher will share the same value.
message [anything]
Any message typed in after the first argument initializes the stored contents of the pv object. Note that when two or more pv objects in a patcher file that share the same name are initialized to different values, the one which is initialized last determines the value. Since the order in which pv objects will be initialized cannot be precisely determined, the best practice is to initialize only one of the related pv objects.
Attributes
Common Box Attributes
Messages
bang
int
Arguments
float
Arguments
list
Arguments
anything
Arguments
status
symbol
Arguments
Output
any message
When
is received in the inlet, the stored message is sent out.See Also
Name | Description |
---|---|
Organizing Your Patch | Organizing Your Patch |
float | |
int | |
pvar | |
receive | |
send | |
value |