Modules and Arrays Question

For general discussion related FlowStone
Post Reply
Ricciardo
Posts: 51
Joined: Wed Sep 11, 2013 10:19 am

Modules and Arrays Question

Post 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
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Modules and Arrays Question

Post 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.
Ricciardo
Posts: 51
Joined: Wed Sep 11, 2013 10:19 am

Re: Modules and Arrays Question

Post 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
Ricciardo
Posts: 51
Joined: Wed Sep 11, 2013 10:19 am

Re: Modules and Arrays Question

Post by Ricciardo »

never mind :D i allready figured out !!!!!!
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Modules and Arrays Question

Post 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.
Attachments
module rearranger.fsm
(124.57 KiB) Downloaded 832 times
Post Reply