[PD] Java Pd file parser

Hans-Christoph Steiner hans at at.or.at
Wed Nov 24 06:27:46 CET 2010


Have you seen iemguts? Its a Pd library for inspecting state of  
patches.  I suppose it could be turned into a C library also, then  
wrapped for Java, Python, etc. ;)

.hc

On Nov 24, 2010, at 12:02 AM, Chris McCormick wrote:

> Hi Hans,
>
> I understand and basically agree, but practically speaking the  
> Python one is done already and works very nicely <http://mccormick.cx/projects/PyPd/PdParser.html 
> > the Javascript one is web based so it doesn't make sense there  
> (cross browser plugins, gah) and is done anyway too (WebPd). I guess  
> I could write the one for Java in C but that just seems like a  
> roundabout way to get it working and would make my build process  
> headachey. What would be good is if Pd itself (and hence lib-pd)  
> provided some API to query the data structure of a Patch. I don't  
> realistically see that happening any time soon.
>
> So anyone got Java code for parsing Pd patches? If not I will post  
> my results here once I have it working.
>
> Chris.
>
> On Tue, Nov 23, 2010 at 11:53:04PM -0500, Hans-Christoph Steiner  
> wrote:
>>
>> Perhaps it would be a good idea to make the Pd C code into a C lib,  
>> then
>> make bindings for other languages?
>>
>> .hc
>>
>> On Nov 23, 2010, at 11:30 PM, Chris McCormick wrote:
>>
>>> Hi,
>>>
>>> Before I go ahead and write it myself, does anyone have code for
>>> parsing Pd files into sensible Java data structures? Seems like I am
>>> always writing this same bit of code in different languages -  
>>> Python,
>>> Javascript, and now Java.
>>>
>>> Cheers,
>>>
>>> Chris.
>>>
>>> -------------------
>>> http://mccormick.cx
>>>
>>> _______________________________________________
>>> Pd-list at iem.at mailing list
>>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>>
>>
>>
>> ----------------------------------------------------------------------------
>>
>> Looking at things from a more basic level, you can come up with a  
>> more
>> direct solution... It may sound small in theory, but it in  
>> practice, it
>> can change entire economies.     - Amy Smith
>>
>>
> -------------------
> http://mccormick.cx



----------------------------------------------------------------------------

Using ReBirth is like trying to play an 808 with a long stick.    - 
David Zicarelli





More information about the Pd-list mailing list