Utilities¶
Utilities¶
- pdpy_lib.utilities.utils.loadPdData(encoding, filename)[source]¶
Load a Pure Data file with the given encoding
- pdpy_lib.utilities.utils.loadPdFile(filename, encoding='utf-8')[source]¶
Attempt to load a pd file with the correct encoding
- Returns
A list of pure data file lines
- Return type
list
- pdpy_lib.utilities.utils.log(level, *argv)[source]¶
log utility with level and variable arguments
This function printt to console with the following level:
Normal
Warning
Error
- Parameters
level (
int
) – The log level (defaults: None)
- pdpy_lib.utilities.utils.parsePdBinBuf(binbuf)[source]¶
Feed in a pd file string and return a list with pure data lines
This function returns a nodes list containing pure data lines split by the semicolon char, accounting specially for lines that span multiple rows
- pdpy_lib.utilities.utils.parsePdFileLines(file_lines)[source]¶
Feed in file lines and return a list with pure data lines
This function returns a nodes list containing pure data lines split by the semicolon char, accounting specially for lines that span multiple rows
PdPy file to Json-format file
PdPy Namespace¶
Pure Data Default Values¶
- class pdpy_lib.utilities.default.Default[source]¶
Bases:
object
Default values for Pure Data objects
- array¶
GOP Array properties
- arrdimen¶
The dimensions of the array in pixels
- coords¶
Coordinates for gop
- digits_width¶
Amount of digits/elements to display on the atom box
- dimension¶
The size of the screen in pixels
- flag¶
A flag
- font¶
The font size and face
- iemgui¶
General iemgui properties
- label¶
Empty symbol for Native Gui
- limits¶
Range boundaries for floatatom
- name¶
Empty symbol for nameless patches
- receive¶
Empty symbol for Native Gui
- screen¶
The position of the screen in x-y space
- send¶
Empty symbol for Native Gui
- vis¶
Canvas visibility