[PD] ascii2pd, pd2ascii (serial communication, arduino, Xbee), concat (list-abs) and cvs

Thomas Ouellet Fredericks iamonthebeach at gmail.com
Thu Jun 8 21:00:40 CEST 2006


"All that's missing now is a way
> to compare strings and a pd patch could function as a web server..."

There is strcmp in zexy to compare strings!
 It actually compares lists, but it can compare lists of symbols!

The main problem is a missing escape character  (like the \ in C), so you 
have to use special codes for $, \ and ,.

Tom



> They should also be useful with my net objects
> http://pure-data.iem.at/Members/martinrp/netobjects
> since they all use "raw" bytes to communicate. All that's missing now is a 
> way
> to compare strings and a pd patch could function as a web server...
>
> Martin


> Quoting Thomas Ouellet Fredericks <iamonthebeach at gmail.com>:
>
>> I wrote 2 abstractions to manage ascii data(codes) within PD. And another 
>> to
>>
>> concatenate data.
>> I found that the existing externals did not have the latitude I needed or
>> treated a limited set of ascii characters.
>> They require pd 0.39, zexy and the included ascii4pd.txt file.
>>
>> NOTE: The quoted text is to be read as if in a PD message box ("a,b"
>> indicates two messages)
>>
>> --- pd2ascii
>> Converts pd symbols, lists, floats and anything into integers (ascii 
>> codes)
>> Examples:
>> converts "a1" or "a,1" to "97,49"
>> converts "a b" into "97,32,98"
>> converts "321,LF,CR" into "51,50,49,10,13"
>>
>> --- ascii2pd
>> Converts intergers into individual pd symbols or floats.
>> To combine the data into complete pd messages, I wrote the following
>> abstraction, concat:
>>
>> --- concat (maybe this could be included in list-abs?)
>> Concatenate floats, symbols, lists and anything into complete PD messages
>> that can have sublists (spaces).
>> Example:
>> step 1) ascii2pd converts "97,32,98,13" into "a,SPACE,b,CR".
>> step 2) concat can convert "a,SPACE,b,CR" into "list a b".
>>
>> Get them here: http://tof.danslchamp.org/pd/ascii2pd+pd2ascii+concat.zip
>>
>> I would like to include them into the CVS (so Hans can include them into 
>> his
>>
>> installers :). How do I do that?
>>
>> Hans, these could be very usefull for your Arduino abstraction (like 
>> sending
>>
>> 16bit numbers, instead of being limited to bytes).
>





More information about the Pd-list mailing list