In my current composition i work with algorithmically generated arrays which are fed to csound for composition parameters.
No i have the problem that inside csound there is a limit to the length of arrays (1999). Which annoys me a lot. And i’m asking myself if this is necessary at all?
Is there a reason for this? and is there a workaround?
I use ‚fillarray‘ to create and fill the arrays at the same time. Maybe just this opcode has problems with it. I will investigate it. Thanks for trying out!
You might have to use delimit and/or strsub as well, depending on how your files are formatted. So basically read the text as strings, line by line, and convert to a float or int.
This seems like a workaround. But could just the ‚fillarray‘ opcode could be modified? Could a developer say something why this opcode is limited to 1999 values?
There is a boundary at 2000 when there is a strategy change to extended argument form. Looks as if extended structyhas not been programmed for fillarray. Will look when awake
==John ffitch
if you use a textfile as actual input, you might be able to do this:
- use GEN23 to read the text file in a function table
- and if you prefer arrays over tables, use copyf2array.