I'm updating code in Windows 10 64-bit and there are no 64-bit pool binaries. I'm in the process of writing my own pool objects using [list]s and [text]s, however I'm having a problem.
Pool formatted data files use this format: , "index-name" , value , "index-name" , value , "index-name" , value
I've tried a lot of things, but I'm stuck with , messages in my file. Is there a way to pass [text] a list that also includes isolated commas?
It's very fairly important that this project maintains backwards capability. Otherwise I would write entirely new routines for saving data.
Sam
Thanks for the clear, concise suggestion! It seems you are right that this might be the only way.
[text fromlist] was one of the first things I tried, but I couldn't get the carriage returns to work correctly. I have it now!
I needed use this to add line breaks: [add2 ;(
Then each line could be stored in [list store] which I could bang into [text fromlist]. The other important ingredient was writing the file with a -c flag to [text define] so the line breaks wouldn't have semicolons. The output file is now exactly like [pool]'s.
Also, thanks for the offer to compile pool as 64-bit. I'm hoping to get my work as close to pd-vanilla as possible for maximum forwards compatibility, but I'm sure there are other people out there that are looking for it.
Sam
On Tue, Oct 8, 2019 at 3:22 PM Christof Ressi christof.ressi@gmx.at wrote:
what is "pool"? is this an external? if so, we can find the sources and compile for 64-bit Pd.
Is there a way to pass [text] a list that also includes isolated commas?
the only way is to use [text fromlist], e.g.:
[list , foo , 1 ; , bar , 2 ; ( -> [text fromlist]
this means you can't easily add/replace a single line, but there are certainly workarounds...
Christof
*Gesendet:* Dienstag, 08. Oktober 2019 um 20:13 Uhr *Von:* "Samuel Burt" composer.samuel.burt@gmail.com *An:* Pd-list pd-list@lists.iem.at *Betreff:* [PD] Comma separators, as in pool.
I'm updating code in Windows 10 64-bit and there are no 64-bit pool binaries. I'm in the process of writing my own pool objects using [list]s and [text]s, however I'm having a problem.
Pool formatted data files use this format: , "index-name" , value , "index-name" , value , "index-name" , value
I've tried a lot of things, but I'm stuck with , messages in my file. Is there a way to pass [text] a list that also includes isolated commas?
It's very fairly important that this project maintains backwards capability. Otherwise I would write entirely new routines for saving data.
Sam
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Thanks for the clear, concise suggestion! It seems you are right that this might be the only way.
[text fromlist] was one of the first things I tried, but I couldn't get the carriage returns to work correctly. I have it now!
I needed use this to add line breaks: [add2 ;(
Then each line could be stored in [list store] which I could bang into [text fromlist]. The other important ingredient was writing the file with a -c flag to [text define] so the line breaks wouldn't have semicolons. The output file is now exactly like [pool]'s.
Also, thanks for the offer to compile pool as 64-bit. I'm hoping to get my work as close to pd-vanilla as possible for maximum forwards compatibility, but I'm sure there are other people out there that are looking for it.
Sam
On Tue, Oct 8, 2019 at 3:22 PM Christof Ressi christof.ressi@gmx.at wrote:
what is "pool"? is this an external? if so, we can find the sources and compile for 64-bit Pd.
Is there a way to pass [text] a list that also includes isolated commas?
the only way is to use [text fromlist], e.g.:
[list , foo , 1 ; , bar , 2 ; ( -> [text fromlist]
this means you can't easily add/replace a single line, but there are certainly workarounds...
Christof
*Gesendet:* Dienstag, 08. Oktober 2019 um 20:13 Uhr *Von:* "Samuel Burt" composer.samuel.burt@gmail.com *An:* Pd-list pd-list@lists.iem.at *Betreff:* [PD] Comma separators, as in pool.
I'm updating code in Windows 10 64-bit and there are no 64-bit pool binaries. I'm in the process of writing my own pool objects using [list]s and [text]s, however I'm having a problem.
Pool formatted data files use this format: , "index-name" , value , "index-name" , value , "index-name" , value
I've tried a lot of things, but I'm stuck with , messages in my file. Is there a way to pass [text] a list that also includes isolated commas?
It's very fairly important that this project maintains backwards capability. Otherwise I would write entirely new routines for saving data.
Sam
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list