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
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
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
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
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...
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
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
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@rybn.org An: Mirko Maier mirkom@gmx.de CC: pd-list@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
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@rybn.org An: Mirko Maier mirkom@gmx.de CC: pd-list@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
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@rybn.org An: Mirko Maier mirkom@gmx.de CC: pd-list@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