Positive / negative sensor values


    Apr 20 2010 | 9:36 am
    Hello !
    Can someone help me on this ?
    I would like to know why all the bang ojects are banging at the same time even if my values are matching only one of the 4 conditions ?
    Is there a better way to say to max :
    - if a>0 and b>0 then bang
    - if a0 then bang
    - if a - if a>0 and b But only one condition could be matched at the time.
    Thanks in advance,
    Mathieu

    • Apr 20 2010 | 9:37 am
      By the way, my values are received with a 25Hz sampling rate, and I can up this rate to 200 Hz
    • Apr 20 2010 | 9:53 am
      Hi,
      Because you have "else clear" the if object output "clear" if the condition is not true. The bang object show it as a bang.
      Also, the right input needs to trigger the left one.
      Y.
    • Apr 20 2010 | 12:16 pm
      Oh thanks it is now clear to me ;)
      Have a nice day
      Mathieu
    • Apr 20 2010 | 6:45 pm
      Is there a better way to say to max :
      - if a>0 and b>0 then bang
      - if a0 then bang
      - if a - if a>0 and b But only one condition could be matched at the time.
      let me try that freehand without maxmsp.^^
      [if $f1>0 && $f2>0 then bang]
      [if $f10 then bang]
      [if $f1 [if $f1>0 && $f2
      [if ($f1>0 && $f20) || ($f10 && $f2
      (of course that will always bang, but you asked for it)
      or with expr:
      [expr $f1>0 && $f2>0] - [select 1]
      -110