Welcome to %s forums

BrainModular Users Forum

Login Register

Array Editor Load from file

I need help on a Patch
Post Reply
grego mondo
Member
Posts: 464
Location: 22110 Rostrenen
Contact:

Array Editor Load from file

Post by grego mondo » 28 Nov 2025, 10:10

Hello

I use an Array Editor to make a scheduler for an installation.
10 lines & 13 columns

Works fine
I save my Array Editor to a file
when I load a file I get an Error message :
PROC:Loadfromfile
ERROR:List index out of bound (13)
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Post by oli_lab » 29 Nov 2025, 14:54

Hi,
that is probably because you ask to scan the array before knowing its size.
but :
Another way to do what you want would be to use global array string.

on each of the 10 lines of the array you'll have the 13 values converted in strings like so : 10;26;54;12;80;0;56;29;13;22;35;44;29

makes for more robust way to save datas as it is easy then to edit the datas from an external text editor
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

grego mondo
Member
Posts: 464
Location: 22110 Rostrenen
Contact:

Post by grego mondo » 29 Nov 2025, 15:40

Thanks Oli

I couldn't remember that global array string trick.

It look like a bug because I tried creating an Array Editor with prefered values : save ok, loading give the same error message.
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Post by oli_lab » 29 Nov 2025, 19:29

Yeah you're right, there's something wrong. I have the same error and the only the 1st line loads.

it is working fine with HH7 although it is exactly the same module in both versions.

do you need any help with the global array trick ? there is 2 submodules in the various tools addons : array to string and string to array
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Post by oli_lab » 30 Nov 2025, 22:30

Hi,
I did this :
global array string.wkp
(123.76 KiB) Downloaded 408 times
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

grego mondo
Member
Posts: 464
Location: 22110 Rostrenen
Contact:

Post by grego mondo » 30 Nov 2025, 22:45

I did this

with a simple global array
Attachments
Laps Scheduller 2.22.wkp
(648.45 KiB) Downloaded 376 times
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Post by oli_lab » 30 Nov 2025, 23:32

cool !
- my global string trick allows for readable file and better compatibility if you'll need to add columns later on.
- the pass module after the "global array get array" is not necessary as you can add paas if change inside that module.
- you could use panel text module for display or at least set the combobox to non-editable
- in french it is called "un programmateur horaire" ;-)

++
Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

grego mondo
Member
Posts: 464
Location: 22110 Rostrenen
Contact:

Post by grego mondo » 01 Dec 2025, 15:46

cool !
- my global string trick allows for readable file and better compatibility if you'll need to add columns later on. +1 (that's a good point)
- the pass module after the "global array get array" is not necessary as you can add paas if change inside that module. the idea was to get global array just when I load it
- you could use panel text module for display or at least set the combobox to non-editable ?
- in french it is called "un programmateur horaire" ;-) I agree but Groupe Laps what to call it Scheduleur ...
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Post by oli_lab » 01 Dec 2025, 16:57

grego mondo wrote:
01 Dec 2025, 15:46
cool !
- my global string trick allows for readable file and better compatibility if you'll need to add columns later on. +1 (that's a good point)
- the pass module after the "global array get array" is not necessary as you can add paas if change inside that module. the idea was to get global array just when I load it
- you could use panel text module for display or at least set the combobox to non-editable ?
- in french it is called "un programmateur horaire" ;-) I agree but Groupe Laps what to call it Scheduleur ...
- thanx,
- "the idea was to get global array just when I load it" : that is what will happen if you tick th "add pass only if change"
- You have combobox that you use for display only, you could have them set to "edit enable" = 0 OR combine different strings (day, date and month) into a single string then feed a panel text in overlay mode.
- frenglish !

++
Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

grego mondo
Member
Posts: 464
Location: 22110 Rostrenen
Contact:

Post by grego mondo » 01 Dec 2025, 17:41

- "the idea was to get global array just when I load it" : that is what will happen if you tick th "add pass only if change"

Am I right if I say that when I change value in my Editor > it change the global Array > so the value pass out of "get global array" ?


- You have combobox that you use for display only, you could have them set to "edit enable" = 0 OR combine different strings (day, date and month) into a single string then feed a panel text in overlay mode.

It took me time to find (Iwas looking in the first page of settings, not in the "view" one) good tips (I believed I knew it and forgot it ...)
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Post by oli_lab » 01 Dec 2025, 19:36

"Am I right if I say that when I change value in my Editor > it change the global Array > so the value pass out of "get global array" ?"

Guesso, but since it is the same values on each side, won't do any harm

++
Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 11 guests