Exporting arrays to txt files


#1

Hi, I want to export a plain array from SuperCollider to a txt file, for use by a python script. When I use the asString method to the array it works but it doesn’t show all the elements of the array and I see " …etc…" in the end. How can I export all the array elements in a plain format [[…],[…],…[…]]?


#2

Perhaps this is helpful. I have a small function that does this in this Quark I made: https://github.com/scazan/LearnGUI/blob/master/Classes/LearnGUI.sc#L316

If you are getting a truncated list, it should be easy enough to simply iterate through them and write each one as you go.


#3

.asCompileString

(i answered a couple hours ago by email but the post was rejected as too short : )