Discussion:
Printing Array size limitation?
brucearnold
2014-09-29 18:27:21 UTC
Permalink
Hello,

I'm trying to print an large array with 11,000 sub-arrays. SC seems to be
only able to print 3277. I've tried using .printAll and .postsc but still
get the same limitation. Is there a workaround for this?

Here is just two of the 11,000 to show array:
[ [ [ 36, 37, 38, 39 ], [ 1, 1, 1, 1 ] ], [ [ 36, 37, 38, 28 ], [ 1, 1, 1, 1
] ], etc...

Thanks

Bruce




--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Printing-Array-size-limitation-tp7613659.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
felix
2014-09-29 19:27:41 UTC
Permalink
you need to iterate through the top level array and print each item

you cannot post everything to the window at once.

it will of course abbreviate with the "etc..."

but if you even try to just print a big string it will cut that off.
Post by brucearnold
Hello,
I'm trying to print an large array with 11,000 sub-arrays. SC seems to be
only able to print 3277. I've tried using .printAll and .postsc but still
get the same limitation. Is there a workaround for this?
[ [ [ 36, 37, 38, 39 ], [ 1, 1, 1, 1 ] ], [ [ 36, 37, 38, 28 ], [ 1, 1, 1, 1
] ], etc...
Thanks
Bruce
--
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Printing-Array-size-limitation-tp7613659.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
--
..
http://soundcloud.com/crucialfelix
http://github.com/crucialfelix
.
brucearnold
2014-09-29 20:15:15 UTC
Permalink
Thanks Felix appreciate the quick response

Bruce



--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Printing-Array-size-limitation-tp7613659p7613661.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Rael Bertarelli Gimenes Toffolo
2014-09-29 22:26:00 UTC
Permalink
I usually send big arrays to txt files... than is possible to read
Post by felix
you need to iterate through the top level array and print each item
you cannot post everything to the window at once.
it will of course abbreviate with the "etc..."
but if you even try to just print a big string it will cut that off.
Post by brucearnold
Hello,
I'm trying to print an large array with 11,000 sub-arrays. SC seems to be
only able to print 3277. I've tried using .printAll and .postsc but still
get the same limitation. Is there a workaround for this?
[ [ [ 36, 37, 38, 39 ], [ 1, 1, 1, 1 ] ], [ [ 36, 37, 38, 28 ], [ 1, 1, 1, 1
] ], etc...
Thanks
Bruce
--
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Printing-Array-size-limitation-tp7613659.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
--
..
http://soundcloud.com/crucialfelix
http://github.com/crucialfelix
.
Rael Bertarelli Gimenes Toffolo
2014-09-29 22:30:27 UTC
Permalink
You can use:

a = your array

Post << a

On Mon, Sep 29, 2014 at 7:26 PM, Rael Bertarelli Gimenes Toffolo <
Post by Rael Bertarelli Gimenes Toffolo
I usually send big arrays to txt files... than is possible to read
Post by felix
you need to iterate through the top level array and print each item
you cannot post everything to the window at once.
it will of course abbreviate with the "etc..."
but if you even try to just print a big string it will cut that off.
Post by brucearnold
Hello,
I'm trying to print an large array with 11,000 sub-arrays. SC seems to be
only able to print 3277. I've tried using .printAll and .postsc but still
get the same limitation. Is there a workaround for this?
[ [ [ 36, 37, 38, 39 ], [ 1, 1, 1, 1 ] ], [ [ 36, 37, 38, 28 ], [ 1, 1, 1, 1
] ], etc...
Thanks
Bruce
--
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Printing-Array-size-limitation-tp7613659.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list
archive at Nabble.com.
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
--
..
http://soundcloud.com/crucialfelix
http://github.com/crucialfelix
.
Miguel Negrão
2014-09-30 09:01:12 UTC
Permalink
Post by brucearnold
Hello,
I'm trying to print an large array with 11,000 sub-arrays. SC seems to be
only able to print 3277. I've tried using .printAll and .postsc but still
get the same limitation. Is there a workaround for this?
[ [ [ 36, 37, 38, 39 ], [ 1, 1, 1, 1 ] ], [ [ 36, 37, 38, 28 ], [ 1, 1, 1, 1
] ], etc...
Thanks
Bruce
Use asCompileString ?

Miguel
felix
2014-09-30 12:21:56 UTC
Permalink
the post window appears to have some limit to what it can print in a single
operation.
it just truncates what you post.

for atom-supercollider I've had to break larger blocks into clumps and then
reassemble them into a single string on the other side.

Files don't have this issue.



On Tue, Sep 30, 2014 at 11:01 AM, Miguel Negrão <
Post by Miguel Negrão
Post by brucearnold
Hello,
I'm trying to print an large array with 11,000 sub-arrays. SC seems to
be
Post by brucearnold
only able to print 3277. I've tried using .printAll and .postsc but
still
Post by brucearnold
get the same limitation. Is there a workaround for this?
[ [ [ 36, 37, 38, 39 ], [ 1, 1, 1, 1 ] ], [ [ 36, 37, 38, 28 ], [ 1, 1,
1, 1
Post by brucearnold
] ], etc...
Thanks
Bruce
Use asCompileString ?
Miguel
--
..
http://soundcloud.com/crucialfelix
http://github.com/crucialfelix
.
brucearnold
2014-09-30 13:53:54 UTC
Permalink
Hi Miguel,

I tried asCompiledString but that gives the same limitations. Since I'm
working with these large arrays quite often I thought maybe writing a .txt
might help but I'm getting a file that would take a bit of editing to get it
to a usable format. For instance:

a =
[[35,34,33,37],[35,34,33,38],[35,34,33,39],[35,34,33,28],[35,34,33,29],[35,34,33,30],[35,34,33,31],[35,34,33,32]];
b = [1,1,1,1];
c = x.collect{ |each| [each] ++ b};
d = c.flat.clumps([4,4]).clump(2);
e = d.writeArchive("testArray.txt");
)

I also tried d.writeTextArchive
both give me:

// Array
35633, [ 35, 34, 33, 30 ],
// Array
35634, [ 1, 1, 1, 1 ],

I could easily search and replace //Array but each array is numbered. I
don't know how to easily replace the array catalog number.

Any ideas? I just want a .txt file that is formatted:

[ [ 36, 37, 38, 39 ], [ 1, 1, 1, 1 ] ], [ [ 36, 37, 38, 28 ], [ 1, 1, 1, 1 ]
], etc...

Thanks again for your insights!

Bruce







--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Printing-Array-size-limitation-tp7613659p7613674.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Loading...