Page 1 of 1

how to combine #2

Posted: Wed Dec 25, 2013 3:32 pm
by tester
How to combine these two ruby concepts?

I mean - first part is dynamic, change per click and so on.

I'd iile to add static part, that is executed only once (when input value changes). That second paart is here to translate single floats into arrays, to provide min/max values somewhere else.

I tried to paste two additional lines in various places, but it seems not to work. I don't know how to wire/enclose these additional i/o in existing ruby setup.

Re: how to combine #2

Posted: Thu Dec 26, 2013 12:25 am
by TrojakEW
Do you want to add second ruby module to the first in your fsm file and change output when these three new input changes? Something like this?

You can also use input number. So instead: if in_id == 'qty' you can use: if in_id == 7.

Re: how to combine #2

Posted: Thu Dec 26, 2013 12:47 am
by tester
Yes, like this, thanks. I did not knew how to wire in that part with min/max ranges.

Generally - because I'm switching from single presets to array based - i need to push whole arrays through min/max ranges during various operations (randomizations, opening/switching unknown presets outside boundaries, trimming incoming arrays during mixing, and so on). One way would be to create float->array parent module that sends minmaxes to all submodules. But then - these submodules would depend on parent one, and I'd like to avoid that.

So then, from outside - I will just send single/float min/maxes, defaults and other ranges.