Hello all, I'm having a little trouble with a little part of my patch where I need to combine two elements and let the computer make an informed decision. Here you can see that eg. if 1 is the message, I need an object to corroborate whether the second finding agrees with the first. I.e. in this case if no. 1 (C) and no. 20 (G) I can safely say it is a type of C chord. Thnks you guys.
-
Conditional Logic
-
If anyones interested heres how I did it:
-
I couldn't work your patch because I don't have the [allow] object.
However, you can also use [&&] to see if both checks are true.
Say 'C' = 1 and 'G' = 8, when the output of both selectors [== 1] and [== 8] equal 1 then [&&] will output 1.
[1(
|
[== 1]
|
| [8(
| |
| [== 8]
| |
[&&]
|
[ 1 \ -
Thanks for the input man, yeah that way works very well too. My problem was that I get a bang the first time it gets the message. With the object {onebang} it doesn't sen out the bang unless it receives a bang on the right first, thus eliminating my issue. Thanks again, if you have anything I can help you with don't hesitate to ask.