-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
At Ben's request, added a get_args method.
self:get_args() returns an object's arguments in a Lua table. float atoms are returned as numbers, other types of atoms as a string using their print representation in Pd syntax (including escapes of special symbols according to Pd's quoting rules). Note that there are some special kinds of Pd atoms such as pointers which don't have a serializable string representation. But as long as all arguments are float and symbol atoms, the resulting table can be passed to self:set_table() to re-create the same object arguments.
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters