Welcome to %s forums

BrainModular Users Forum

Login Register

equation module

I need help on a Patch
Post Reply
waolelaid
Member
Posts: 339
Location: Ecouen 95
Contact:

Unread post by waolelaid » 08 Sep 2011, 16:33

Hi , as i'm not able to make script i thought that i could
make a condition with the equation module but i don't understand
how to do
i constated that the inlet "a" is 0 or 1 and when is 0 it sends the number strored in "b"
and when "a" is 1 it sends the number stored in "c"
but i don't know what is the function of the inlet "d"
i supposed that the "d" could be the add of c and b
but i don't understand how it works
so if somebody can give me an example a drawing
it helps me a lot to understand
thanx :D
Avant l'effet on croit à d'autres causes qu'après
Friedrich Nietzsche

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 08 Sep 2011, 16:46

those inlet are only variable, it's you who define the equation in the first text inlet
you can wrote for example a+b*c/d
Image

Floego
Member
Posts: 319
Location: Venezuela
Contact:

Unread post by Floego » 08 Sep 2011, 17:46

The equation module is really cool! :cool:

yes, it is possible to use conditional function,

for example, you can write this expression inside the [equation] : [large]if((a<b),a+1,a=b)[/large]

that means: if the value of 'a' is less than the value of 'b', then do 'a+1' else do 'a=b'

the result of this conditional goes directly to the output outlet.

you even could make a feedback connection between the outlet and any inlet (a,b,c,d) if you need to create an iterative operation.

in that case you need to take the precautions to keep the loop out from overflowing and you should try to use a 'reset' button to keep the module ready and useful.

Image

waolelaid
Member
Posts: 339
Location: Ecouen 95
Contact:

Unread post by waolelaid » 08 Sep 2011, 22:10

Hi , thanx very much nay and floego
i dind't understand that it was necessary to write
the equation in the case :rolleyes:
And nevertheless I read but don't understand
all very well
thanx again good evening :D
Avant l'effet on croit à d'autres causes qu'après
Friedrich Nietzsche

Post Reply

Who is online

Users browsing this forum: No registered users and 80 guests