| | |
- __builtin__.object
-
- Box
-
- Comment
- Message
- Number
- Object
-
- GUI
-
- Bang
- Canvas
- HSlider
- Number2
- Radio
-
- HRadio
- VRadio
- Toggle
- VSlider
- VU
- Symbol
- Connection
- Patch
class Bang(GUI) |
| | |
- Method resolution order:
- Bang
- GUI
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
- bang(self)
Methods inherited from Object:
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Box(__builtin__.object) |
| |
Mother of all PD elements (boxes). All the main operations are done here
sending FUDI messages to PD.
Attributes:
patch -- the 'virtual' Patch
fudi_token -- the FUDI type (obj, msg, nmb, ...)
label -- the label of the box (osc~ 440, dac~, ...)
x -- box's x coordinate in the patch
y -- box's y coordinate in the patch |
| |
Methods defined here:
- __init__(self, patch, fudi_token, label, x, y)
- Builds a box, initializing arguments and sending a FUDI message do PD,
creating the box.
Adds the box to Patch's boxes list too.
- __str__(self)
- Shows the box in a pretty formated ASCII-art way :-).
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Canvas(GUI) |
| | |
- Method resolution order:
- Canvas
- GUI
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
Methods inherited from Object:
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Comment(Box) |
| |
Defines the text (comment) elements of PD.
Attributes:
patch -- the 'virtual' Patch
label -- the comment content
x -- box's x coordinate in the patch (optional)
y -- box's y coordinate in the patch (optional) |
| |
- Method resolution order:
- Comment
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, label, x=None, y=None)
- Creates a comment at x and y position.
The x and y coordinates are optional. If you don't give one, a
free space in the patch will be used.
Example:
p = Patch()
comment = Comment(p, 'foo bar baz', 100, 100)
c = Comment(p, ':-)')
- __str__(self)
- Shows the comment in a pretty formated ASCII-art way :-).
Example:
comment = Comment(p, 'foo bar baz')
print comment
" foo bar baz "
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Connection(__builtin__.object) |
| | |
Methods defined here:
- __init__(self, source_box, source_outlet, target_box, target_inlet)
- __str__(self)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class GUI(Object) |
| | |
- Method resolution order:
- GUI
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, label, x=None, y=None)
Methods inherited from Object:
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class HRadio(Radio) |
| | |
- Method resolution order:
- HRadio
- Radio
- GUI
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
Methods inherited from Object:
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class HSlider(GUI) |
| | |
- Method resolution order:
- HSlider
- GUI
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
- decrement(self, step=1)
- increment(self, step=1)
Methods inherited from Object:
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Message(Box) |
| |
Defines the msg (messages) elements of PD.
Attributes:
patch -- the 'virtual' Patch
label -- the label of the box (osc~ 440, dac~, ...)
x -- box's x coordinate in the patch (optional)
y -- box's y coordinate in the patch (optional) |
| |
- Method resolution order:
- Message
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, label, x=None, y=None)
- Creates a msg box with label as content at x and y position.
The x and y coordinates are optional. If you don't give one, a
free space in the patch will be used.
Example:
p = Patch()
bang = Message(p, 'bang', 100, 100)
foo = Object(p, 'foo bar baz')
- __str__(self)
- Shows the message in a pretty formated ASCII-art way :-).
Example:
bang = Message(p, 'bang')
print bang
[ bang (
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Number(Box) |
| |
Defines the floatatom (numbers) elements of PD.
Attributes:
patch -- the 'virtual' Patch
value -- the current number value
x -- box's x coordinate in the patch (optional)
y -- box's y coordinate in the patch (optional) |
| |
- Method resolution order:
- Number
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
- Creates a number box at x and y position.
The x and y coordinates are optional. If you don't give one, a
free space in the patch will be used.
Example:
p = Patch()
nmb = Number(p, 100, 100)
n = Number(p)
- __str__(self)
- Shows the number in a pretty formated ASCII-art way :-).
Example:
nmb = Number(p)
print nmb
[ 0 `|
- decrement(self, step=1)
- Decrements by a step the value of the number element.
Example:
nmb = Number(p)
print nmb
[ 0 `|
nmb.decrement()
print nmb
[ -1 `|
- increment(self, step=1)
- Increments by a step the value of the number element.
Example:
nmb = Number(p)
print nmb
[ 0 `|
nmb.increment()
print nmb
[ 1 `|
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Number2(GUI) |
| | |
- Method resolution order:
- Number2
- GUI
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
Methods inherited from Object:
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Object(Box) |
| |
Defines the obj (objects) elements of PD (osc~, dac~, phasor~, ...).
Attributes:
patch -- the 'virtual' Patch
label -- the label of the box (osc~ 440, dac~, ...)
x -- box's x coordinate in the patch (optional)
y -- box's y coordinate in the patch (optional) |
| |
- Method resolution order:
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, label, x=None, y=None)
- Creates a obj box with label as content at x and y position.
The x and y coordinates are optional. If you don't give one, a
free space in the patch will be used.
Example:
p = Patch()
osc = Object(p, 'osc~ 440', 100, 100)
phasor = Object(p, 'phasor~ 220')
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Patch(__builtin__.object) |
| | |
Methods defined here:
- __init__(self, filename='receive.pd', hostname='localhost', port=4242)
- __str__(self)
- clear(self)
- click(self, box)
- connect(self, source_box, source_outlet, target_box, target_inlet)
- delete(self, box)
- disconnect(self, source_box, source_outlet, target_box, target_inlet)
- dsp(self, state)
- edit(self, box, label)
- editmode(self, state)
- move(self, box, x, y)
- next_freeposition(self)
- select(self, box)
- send(self, fudi_msg)
- unselect(self, box)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Radio(GUI) |
| | |
- Method resolution order:
- Radio
- GUI
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
Methods inherited from Object:
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Symbol(Box) |
| |
Defines the symbolatom (symbol) elements of PD.
Attributes:
patch -- the 'virtual' Patch
x -- box's x coordinate in the patch (optional)
y -- box's y coordinate in the patch (optional) |
| |
- Method resolution order:
- Symbol
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
- Creates a symbol box at x and y position.
The x and y coordinates are optional. If you don't give one, a
free space in the patch will be used.
Example:
p = Patch()
symbol = Symbol(p, 100, 100)
s = Symbol(p)
- __str__(self)
- Shows the symbol in a pretty formated ASCII-art way :-).
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Toggle(GUI) |
| | |
- Method resolution order:
- Toggle
- GUI
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
- off(self)
- on(self)
Methods inherited from Object:
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class VRadio(Radio) |
| | |
- Method resolution order:
- VRadio
- Radio
- GUI
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
Methods inherited from Object:
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class VSlider(GUI) |
| | |
- Method resolution order:
- VSlider
- GUI
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
- decrement(self, step=1)
- increment(self, step=1)
Methods inherited from Object:
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class VU(GUI) |
| | |
- Method resolution order:
- VU
- GUI
- Object
- Box
- __builtin__.object
Methods defined here:
- __init__(self, patch, x=None, y=None)
Methods inherited from Object:
- __str__(self)
- Shows the object in a pretty formated ASCII-art way :-).
Example:
osc = Object(p, 'osc~ 440')
print osc
[ osc~ 440 ]
Methods inherited from Box:
- click(self)
- Does a mouse left-click on the box.
Example:
msg = Message(p, 'bang', 100, 100)
msg.click()
- connect(self, source_outlet, target_box, target_inlet)
- Connects the box with another box. You need to specify the outlet of the
source box and the inlet of the target box.
Adds the connection to Patch's connections list too.
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.connect(0, dac, 1) # connects outlet 0 of osc to inlet 1 of dac
- delete(self)
- Removes the box from the patch.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.delete()
- disconnect(self, source_outlet, target_box, target_inlet)
- Disconnects the box from another box. You need to specify the outlet
of the source box and the inlet of the target box.
Removes the connection from Patch's connections list too.
osc.select()
Example:
osc = Object(p, 'osc~ 220', 100, 100)
dac = Object(p, 'dac~', 100, 150)
osc.connect(0, dac, 0) # connects outlet 0 of osc to inlet 0 of dac
osc.disconnect(0, dac, 0) # disconnects the connection created above
- edit(self, label)
- Edits the label of the box, updating the old with the new one.
Example:
msg = Message(p, 'foo', 100, 100)
msg.edit('bar')
- move(self, x, y)
- Moves the box to the new position at coordinates x and y.
Example:
osc = Object(p, 'osc~ 440', 100, 100)
osc.move(150, 200)
- select(self)
- Selects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.select()
- unselect(self)
- Unselects the box.
Example:
osc = Object(p, 'dac~', 100, 100)
osc.unselect()
Data descriptors inherited from Box:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |