[PD] comma into a textfile
jack at rybn.org
Tue Jun 26 17:54:42 CEST 2012
Le 26/06/2012 16:58, Mirko Maier a écrit :
> hey jack,
> thank you very much, works, but:
> when saving the textfile (write test1.txt) and opening it in an ordinary editor, i have instead of a single comma a "\,". is there any hope...?
> -------- Original-Nachricht --------
>> Datum: Tue, 26 Jun 2012 16:47:15 +0200
>> Von: Jack <jack at rybn.org>
>> An: pd-list at iem.at
>> Betreff: Re: [PD] comma into a textfile
>> Le 26/06/2012 15:20, Mirko Maier a écrit :
>>> hi jack,
>>> thanks, still not possible. a textfile containing commas (with "\,")
>> cannot be read properly, at least not in a way that the comma is again fed
>> into another textfile.
>>> [textfile] <-gives out "c,"
>>> [add $1(
>>> doesn't work,
>>> the same with
>>> [textfile] <-gives out "add c,"
>>> my goal is: i want to create lilypond scores out of pd. but the lilypond
>> syntax has signs like comma, backslash and curly brackets. e.g. low
>> pitches are notated in lilypond with commas, like "c," or "c,,"
>>> how would an ascii solution be?
>>> @olivier: thanks, but link doesn't lead to a patch
>> Have a look to this patch.
>> Hope it will help.
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
More information about the Pd-list