Hi all is there a pd-vanilla way to get the values of an array as a list?
thx,
J
As far as I know, only at the patching level. But I've got an external that does it much faster...
On Thu, Jan 21, 2010 at 12:18 AM, Jaime Oliver jaime.oliver2@gmail.com wrote:
Hi all is there a pd-vanilla way to get the values of an array as a list?
thx,
J
-- Jaime E Oliver LR
joliverl@ucsd.edu www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org
858 750 0924 (cel) 858 202 1522 (home) 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hey
On Thu, Jan 21, 2010 at 12:42 AM, William Brent william.brent@gmail.com wrote:
As far as I know, only at the patching level. But I've got an
which way would that be? i am looking for patching way right now...
external that does it much faster...
is this in your website?
On Thu, Jan 21, 2010 at 12:18 AM, Jaime Oliver jaime.oliver2@gmail.com wrote:
Hi all is there a pd-vanilla way to get the values of an array as a list?
thx,
J
-- Jaime E Oliver LR
joliverl@ucsd.edu www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org
858 750 0924 (cel) 858 202 1522 (home) 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- William Brent www.williambrent.com
“Great minds flock together” Conflations: conversational idiom for the 21st century
www.conflations.com
Here's an abstraction that takes the array name as an argument. It just uses an until loop. You bang it and get out a list...
I don't have the external on my site yet...but I could clean it up and put it out there if someone hasn't already done it.
On Thu, Jan 21, 2010 at 12:44 AM, Jaime Oliver jaime.oliver2@gmail.com wrote:
hey
On Thu, Jan 21, 2010 at 12:42 AM, William Brent william.brent@gmail.com wrote:
As far as I know, only at the patching level. But I've got an
which way would that be? i am looking for patching way right now...
external that does it much faster...
is this in your website?
On Thu, Jan 21, 2010 at 12:18 AM, Jaime Oliver jaime.oliver2@gmail.com wrote:
Hi all is there a pd-vanilla way to get the values of an array as a list?
thx,
J
-- Jaime E Oliver LR
joliverl@ucsd.edu www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org
858 750 0924 (cel) 858 202 1522 (home) 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- William Brent www.williambrent.com
“Great minds flock together” Conflations: conversational idiom for the 21st century
www.conflations.com
-- Jaime E Oliver LR
joliverl@ucsd.edu www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org
858 750 0924 (cel) 858 202 1522 (home) 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA
Oops...looks like I made it so that you give it the size of the array, not a bang. Frank's post reminded me...
But is there something in Pd-ext that does this? There must be, right? An external is waaaaaaaay faster for long arrays.
On Thu, Jan 21, 2010 at 12:52 AM, William Brent william.brent@gmail.com wrote:
Here's an abstraction that takes the array name as an argument. It just uses an until loop. You bang it and get out a list...
I don't have the external on my site yet...but I could clean it up and put it out there if someone hasn't already done it.
On Thu, Jan 21, 2010 at 12:44 AM, Jaime Oliver jaime.oliver2@gmail.com wrote:
hey
On Thu, Jan 21, 2010 at 12:42 AM, William Brent william.brent@gmail.com wrote:
As far as I know, only at the patching level. But I've got an
which way would that be? i am looking for patching way right now...
external that does it much faster...
is this in your website?
On Thu, Jan 21, 2010 at 12:18 AM, Jaime Oliver jaime.oliver2@gmail.com wrote:
Hi all is there a pd-vanilla way to get the values of an array as a list?
thx,
J
-- Jaime E Oliver LR
joliverl@ucsd.edu www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org
858 750 0924 (cel) 858 202 1522 (home) 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- William Brent www.williambrent.com
“Great minds flock together” Conflations: conversational idiom for the 21st century
www.conflations.com
-- Jaime E Oliver LR
joliverl@ucsd.edu www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org
858 750 0924 (cel) 858 202 1522 (home) 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA
-- William Brent www.williambrent.com
“Great minds flock together” Conflations: conversational idiom for the 21st century
www.conflations.com
Hallo, William Brent hat gesagt: // William Brent wrote:
Oops...looks like I made it so that you give it the size of the array, not a bang. Frank's post reminded me...
But is there something in Pd-ext that does this? There must be, right? An external is waaaaaaaay faster for long arrays.
[tabdump] in zexy. Many other table objects are in iem_tab.
Frank
Am 21.01.10 09:57 schrieb "William Brent" unter william.brent@gmail.com:
But is there something in Pd-ext that does this? There must be, right? An external is waaaaaaaay faster for long arrays.
An external will always be faster. However, the patching method still can be optimized a lot. [list-tabdump] copies the same data back and forth and the number-of-elemts/cputime ratio is not linear, but something like 'exponential' (please someone put here the correct term). Attached is a benchmark patch, that compares [tabdump], [list-tabdump] and a patched vanilla version, that has a linear ratio, which makes it a lot faster than [list-tabdump], especially with big arrays (though it is still 10 times slower than [tabdump]).
Roman
Hi
I just realized, that my little patch posted previously is ~40kB heavy. Sorry for filling your mail boxes with zeros.
Unlike Pd-vanilla, Pd-extended seems to save the content of a [table] object in the .pd-file. Why was that changed? Is there any way to have the content _not_ saved with the patch? If someone deliberately wants to save this data still an array can be used.
Roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
in array you can click or unclick save contents. is that what you are talking about?
J
On Thu, Jan 21, 2010 at 5:41 AM, Roman Haefeli reduzierer@yahoo.de wrote:
Hi
I just realized, that my little patch posted previously is ~40kB heavy. Sorry for filling your mail boxes with zeros.
Unlike Pd-vanilla, Pd-extended seems to save the content of a [table] object in the .pd-file. Why was that changed? Is there any way to have the content _not_ saved with the patch? If someone deliberately wants to save this data still an array can be used.
Roman
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
No, I really mean the [table] object. I am irritated, that in Pd-extended its content is saved with the patch, which is not the case on Pd-vanilla. I wonder, if there is really no way not to save table data in Pd-extended.
Roman
On Thu, 2010-01-21 at 12:20 -0800, Jaime Oliver wrote:
in array you can click or unclick save contents. is that what you are talking about?
J
On Thu, Jan 21, 2010 at 5:41 AM, Roman Haefeli reduzierer@yahoo.de wrote:
Hi
I just realized, that my little patch posted previously is ~40kB heavy. Sorry for filling your mail boxes with zeros.
Unlike Pd-vanilla, Pd-extended seems to save the content of a [table] object in the .pd-file. Why was that changed? Is there any way to have the content _not_ saved with the patch? If someone deliberately wants to save this data still an array can be used.
Roman
Hallo, Roman Haefeli hat gesagt: // Roman Haefeli wrote:
No, I really mean the [table] object. I am irritated, that in Pd-extended its content is saved with the patch, which is not the case on Pd-vanilla. I wonder, if there is really no way not to save table data in Pd-extended.
It wasn't the table content, that was saved in your patch, it was the message box that you use to achieve the speed-up. It was still filled when you've saved the patch. :)
Anyway I think, even when dynamically changing message boxes has the danger of being fooled by this kind of side effects, the optimization results are often worth it. I've added the attached version of [list-tabdump] to the Sourceforge SVN now.
Frank
Am 22.01.10 11:29 schrieb "Frank Barknecht" unter fbar@footils.org:
Hallo, Roman Haefeli hat gesagt: // Roman Haefeli wrote:
No, I really mean the [table] object. I am irritated, that in Pd-extended its content is saved with the patch, which is not the case on Pd-vanilla. I wonder, if there is really no way not to save table data in Pd-extended.
It wasn't the table content, that was saved in your patch, it was the message box that you use to achieve the speed-up. It was still filled when you've saved the patch. :)
Thanks for clearing that up. And sorry for the noise.
Anyway I think, even when dynamically changing message boxes has the danger of being fooled by this kind of side effects, the optimization results are often worth it. I've added the attached version of [list-tabdump] to the Sourceforge SVN now.
Cool. Thanks
Roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
My little participation :) A small modification of [list-tabdump] is 40% faster than the original (avoiding to send everytime the new list from [list append] in [list]). ++
Jack
Le jeudi 21 janvier 2010 à 13:53 +0100, Roman Haefeli a écrit :
Am 21.01.10 09:57 schrieb "William Brent" unter william.brent@gmail.com:
But is there something in Pd-ext that does this? There must be, right? An external is waaaaaaaay faster for long arrays.
An external will always be faster. However, the patching method still can be optimized a lot. [list-tabdump] copies the same data back and forth and the number-of-elemts/cputime ratio is not linear, but something like 'exponential' (please someone put here the correct term). Attached is a benchmark patch, that compares [tabdump], [list-tabdump] and a patched vanilla version, that has a linear ratio, which makes it a lot faster than [list-tabdump], especially with big arrays (though it is still 10 times slower than [tabdump]).
Roman
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
oh i see, i was thinking of some sort of a message one could send to an array or a way to intercept a message that is writing to an array, something less [until]-like, i haven't checked list-abs, but i suppose it is similar?
but thanks to both...
J
On Thu, Jan 21, 2010 at 12:52 AM, William Brent william.brent@gmail.com wrote:
Here's an abstraction that takes the array name as an argument. It just uses an until loop. You bang it and get out a list...
I don't have the external on my site yet...but I could clean it up and put it out there if someone hasn't already done it.
On Thu, Jan 21, 2010 at 12:44 AM, Jaime Oliver jaime.oliver2@gmail.com wrote:
hey
On Thu, Jan 21, 2010 at 12:42 AM, William Brent william.brent@gmail.com wrote:
As far as I know, only at the patching level. But I've got an
which way would that be? i am looking for patching way right now...
external that does it much faster...
is this in your website?
On Thu, Jan 21, 2010 at 12:18 AM, Jaime Oliver jaime.oliver2@gmail.com wrote:
Hi all is there a pd-vanilla way to get the values of an array as a list?
thx,
J
-- Jaime E Oliver LR
joliverl@ucsd.edu www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org
858 750 0924 (cel) 858 202 1522 (home) 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- William Brent www.williambrent.com
“Great minds flock together” Conflations: conversational idiom for the 21st century
www.conflations.com
-- Jaime E Oliver LR
joliverl@ucsd.edu www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org
858 750 0924 (cel) 858 202 1522 (home) 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA
-- William Brent www.williambrent.com
“Great minds flock together” Conflations: conversational idiom for the 21st century
www.conflations.com