[PD] comma into a textfile

Dan Wilcox danomatika at gmail.com
Wed Jun 27 22:14:53 CEST 2012


This would totally work. I use [wchars2any], [any2bytes] and [binfile] to load and parse csv files within pd, see [csvfile-help] here https://github.com/danomatika/rc-patches/tree/master/extra 

You need to write instead of read, but it's pretty easy. You mainly want to use [any2wchars] to convert symbols & floats to binary and ascii code 44 to add a coma. You can send a newline ascii code at the end of each line ... done. Consult your ASCII table for more.

On Jun 26, 2012, at 12:47 PM, Martin Peach wrote:

> You could probably get somewhere using [moocow/any2bytes] and [mrpeach/binfile].
> 
> Martin
> 
> On 2012-06-26 12:22, Mirko Maier wrote:
>> ok, hoped for a solution within pd(extended on windows).
>> 
>> thanks
>> mirko
>> 
>> -------- Original-Nachricht --------
>>> Datum: Tue, 26 Jun 2012 18:03:29 +0200
>>> Von: Jack <jack at rybn.org>
>>> An: Mirko Maier <mirkom at gmx.de>
>>> CC: pd-list at iem.at
>>> Betreff: Re: [PD] comma into a textfile
>> 
>>> Le 26/06/2012 18:00, Mirko Maier a ̩crit :
>>>>> It is a normal that you get a comma in your text file when you use
>>>>> 'write' message on [textfile].
>>>>> Because Pd escape the comma to read it back with [textfile].
>>>>> But you shouldn't get this \ when you 'read' this same text file with
>>>>> [textfile].
>>>>> ++
>>>>> 
>>>>> Jack
>>>> yeah, but i want to read the written text file then in another software
>>> (lilypond), and there the backslash is bad...
>>>> 
>>>> Mirko
>>> 
>>> So, remove backslashes with a bash script (for example) when you save
>>> the text file with 'write' message.
>>> ++
>>> 
>>> Jack
>>> 
>>> 
>>> 
>> 
> 
> 
> 
> 
> 

--------
Dan Wilcox
danomatika.com
robotcowboy.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120627/53f021de/attachment.htm>


More information about the Pd-list mailing list