Large string arrays and interlace??

Discuss Lemur and share techniques.
Post Reply
kraftf
Regular
Posts: 124
Joined: 14 Dec 2011 06:36

Large string arrays and interlace??

Post by kraftf »

Has anyone tried dealing with large string arrays?
I've been messing around and it really is a nightmare!!
Guys from Liine should have informed about the limits of arrays.
I cannot define a variable with more than 20 string values. Sometimes it seems like Lemur can put up with more than 20 but even then I either get Lemur editor crash or after a while the variable becomes red and truncates the overloaded string variable array.

So i tried constructing 20 piece string variable arrays and then interlace them. I was keeping an eye also to the size of the array with a monitor and it seemed to be increased after the interlace operation. But the content of the array was a real mess. It either was the same as before or with mixed string values from the 2 arrays instead of neatly joint values. Big problems.
I was trying to setup program changes and show the names of the programms and I have ended up splitting 127 in 6 or 7 variable each holding maximum 20 values. Let aside the programming nightmare in order to refer to these variables. I need around 80 variables to address the name of the patches instead of 7 or 8 large arrays that can hold 128 names.

Am I missing something here? Anyone else has a better treatment?

The above limitation along with the 256 limit in the size of the arithmetic variable arrays has to be either tackled or else mentioned at least inside the manual!! :x
I lost a whole day trying to figure out whats going wrong and to prepare my string lists from pdf inside excel to discover that they had to be remade in a different manner.
analog604
Regular
Posts: 262
Joined: 29 Dec 2011 15:40
Location: north east, usa

Re: Large string arrays and interlace??

Post by analog604 »

Ouch! I going to get into large vector/array string territory soon and most definitely want them to
be able to hold at least 5K each.
Guys, is this a bug? Can we please have less restrictive vector variables?
Dashboard gear control templates: User 112 Idx :: LModIt Lite :: SVG image converter for Lemur Canvas
filmriss
Newbie
Posts: 18
Joined: 28 Dec 2011 13:52

Re: Large string arrays and interlace??

Post by filmriss »

unfortunately I can confirm this - I have experienced the same issue.

An array of strings, a couple of scripts triggered by OSC write to the array on different positions. If I monitor the array (using the monitor object), I see how things are messed up. --> missing characters --> corrupted array --> crash.

I disabled this part of my template, was thinking to use single variables instead of arrays?! any other ideas?
kraftf
Regular
Posts: 124
Joined: 14 Dec 2011 06:36

Re: Large string arrays and interlace??

Post by kraftf »

filmriss wrote:unfortunately I can confirm this - I have experienced the same issue.

An array of strings, a couple of scripts triggered by OSC write to the array on different positions. If I monitor the array (using the monitor object), I see how things are messed up. --> missing characters --> corrupted array --> crash.

I disabled this part of my template, was thinking to use single variables instead of arrays?! any other ideas?
As I have said in the first post use arrays with a max size of 20 and do not interlace them. Just refer to them in your scripts.
Post Reply