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...?
best mirko
-------- Original-Nachricht --------
Datum: Tue, 26 Jun 2012 16:47:15 +0200 Von: Jack jack@rybn.org An: pd-list@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( | [textfile]
doesn't work, the same with
[textfile] <-gives out "add c," | [textfile]
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
best mirko
Hello,
Have a look to this patch. Hope it will help. ++
Jack
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