Page 1 of 1
Modules and Arrays Question
Posted: Thu Oct 16, 2014 5:31 pm
by Ricciardo
Hi,
Is there anyway to display modules using an array order?
i mean...
lets supose i have 5 modules (it could be fx modules, delay, chorus etc etc)
and i would create an array named "modules" [0] [1] [2] [3] [4], that would then be represented "normaly"
in this order...
0
1
2
3
4
suposing, each module display have its own number... is there a way of doing this in ruby, and perhaps
morph with other thing i allready seen like the so called fx chainer wich uses arrays to set the audio order..
but i would like to do similar, with graphics... displays, not bitmaps, but modules display...
any info would be apreciated
regards
Re: Modules and Arrays Question
Posted: Thu Oct 16, 2014 5:51 pm
by KG_is_back
You may use multiplexer to select between multiple displays. Basically the same problem has been discused in
this topic. Check out the example in there.
Re: Modules and Arrays Question
Posted: Thu Oct 16, 2014 6:26 pm
by Ricciardo
I think you miss understood what i meant...
the multiplexer is designed to switch between multiple displays showing only 1 at the time...
what i want is diferentt, i want to display every module at same time, but in a certain order... depeding
the way the array would be indexed or changed
basicly... you want simple tabs, with multiplexer to hide and show when selected...
i want do drag and drop fx between inserts, this is made using an array... i allready have the chainfx code to do it
and it works... but to make it the way i want... i would like to do this also with "displays" not only audio...
i want to grab modules, up and down... in the fx rack...
so if have 5 slots (array) each slot have 5 possibilities... this is interesting... perhaps the multiplexer could work
but still... i dont know how to split... the data into each multiplexer
i give you an example...
the code looks like this:
0
1
3
2
4
or it could have a complete different order... it could be
1
0
2
4
3
it doesnt matter, basicly, each line is a fx slot, and the number is the type of "module"/fx selected for that slot/insert.. each slot, have 5 possibilities, and logicaly, when 1 is in the slot 0, it cant be anywhere else...
this have to be made with an array, there isnt otherway... but i dont have the knoledge to code this in ruby
i guess i will have to do it "mecanicaly" with primitives...
if i could split the array for each line, and assign it for 5 different multiplexers, it would work i think...
but still, i think this can be done faster and much more eficiently in Ruby... but i dont know how to code it!
but thanks anyway, for the help
Re: Modules and Arrays Question
Posted: Thu Oct 16, 2014 6:36 pm
by Ricciardo
never mind

i allready figured out !!!!!!
Re: Modules and Arrays Question
Posted: Thu Oct 16, 2014 6:52 pm
by KG_is_back
Ah, now I get it. Module GUI primitive provides the size of the modules view and also lets you specify its position.
Assuming they will be aligned horizontally the x position of the module will be the sum of widths of modules left form his position.