pd-upic is a Pure Data (Pd) external object inspired by the works of Iannis Xenakis. This object is designed to facilitate the conversion of SVG (Scalable Vector Graphics) data into coordinate information within the Pure Data environment.
Warning
pd-upic is distributed as part of the pd-neimog library. You need to install pdlua first. To do this, open Pure Data, go to Help → Find Externals, then search for and install pdlua and pd-neimog.
- Create a new Pure Data patch.
- Go to Help → Find Externals → and Search for
pd-upic. - Create a new object
declare -lib pdlua -path pd-upic. - Create one of the objects.
Check https://charlesneimog.github.io/blog/posts/pd-upic.html to learn how to build the SVG file.
l.readsvg:- Method:
readthe SVG file, requires the SVG file. - Method:
playthe SVG file; - Method:
stopthe player;
- Method:
l.getmsgs:- Method: Get all messages set in the properties text input inside Inkscape.
-
l.attrfilter: Filter object by attribute.- Available attributes are:
fill,stroke,type,duration,onset.
- Available attributes are:
-
l.attrget: Method to get the values of some attribute for some SVG form.
Sub-Events are SVGs draw inside SVGs draws.
l.getchilds: Returns a list with all the child of the event.l.playchilds: Put the children on time, playing following the onset of the father.
l.getpath: Get the complete path of paths.l.playpath: Play the complete path of paths.