![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: logical operators |
Bill Meadows Member |
![]() ![]() ![]() How do I perform logical AND and OR operations in expressions? I need to make a trigger when "this" AND "that" are true. IP: Logged |
SSC Administrator |
![]() ![]() ![]() AND == * OR == + TRUE == 1 FALSE == 0 A logical test like (!KeyNumber eq: 60) equals 1 if true and 0 if false. For example, to trigger when middle C is down AND the !KeyVelocity is high enough, you could use the expression: (!KeyNumber eq: 60) * (!KeyVelocity gt: 0.5) To trigger when EITHER condition is true you could use (!KeyNumber eq: 60) + (!KeyVelocity gt: 0.5) For expressions or Sounds that are not ordinarily used as logic values (i.e. they take on continuous values between -1 and 1), you can force them to be either 0 or 1 using the message asLogicValue For example [aThresholdSound] L asLogicValue IP: Logged |
Bill Meadows Member |
![]() ![]() ![]() Perfect. Thanks. (btw-Any thoughts about a CapyTalk workshop?) [This message has been edited by Bill Meadows (edited 13 December 2002).] IP: Logged |
SSC Administrator |
![]() ![]() ![]() It is part of the immersion weekend but we could into it in more depth in the "repeat offenders" workshop. IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() ![]() |
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.