how to combine #2

For general discussion related FlowStone
Post Reply
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

how to combine #2

Post 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.
Attachments
how to combine.fsm
(1.03 KiB) Downloaded 849 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
User avatar
TrojakEW
Posts: 111
Joined: Sat Dec 25, 2010 10:12 am
Location: Slovakia

Re: how to combine #2

Post 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.
Attachments
how to combine-1_2.fsm
(1.14 KiB) Downloaded 865 times
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: how to combine #2

Post 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.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Post Reply