Kyma Forum
  Kyma Support
  OR logic expression issue

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   OR logic expression issue
rafe
Member
posted 15 February 2015 00:11         Edit/Delete Message   Reply w/Quote
I have the following expression pasted into the frequency field of a HPF. it creates an unexpected behaviours.

(!Bypass * 0 + (!HPF_75_1 *75 )+ !HPF_125_1*125) hz

1) the !HPF_75_1 hot parameter is set to a toggle in the vcs and when it is toggled on the resulting frequency is 9375 hz. The !HPF_125_1 parameter works as expected

2) the !bypass hot parameter is not showing up in the vcs. I checked the parameter list int he vcs Editor dialogue and it isn't listed there either.

Any ideas?

thanks

rafe


IP: Logged

gustl
Member
posted 15 February 2015 05:42         Edit/Delete Message   Reply w/Quote
Hi rafe,

You are multiplying !Bypass with 0, so the result is always 0. that may be the reason why it is not showing up?
Try (!Bypass * ((!HPF_75_1 * 75 ) + (!HPF_125_1 * 125))) hz

About the other issue: Have a look at the VCS, maybe the toggle is sending a value of 125 when active?

Best,
Gustl

IP: Logged

rafe
Member
posted 16 February 2015 15:50         Edit/Delete Message   Reply w/Quote
Thanks Gusti for caching the bypass issue. It is unnecessary part of the expression

however the issue is a an order of operations issue -
(1 + (!HPF_75_1 *75 )+ !HPF_125_1*125) hz but the other issue with the !HPF_75 still creates the same error because kyma doesnt seem to be following the order of operation rules.
when:
!hpf_75 is on result is 9500
!hpf_75 & !HPF_125 result is 9625
both off the out put is 125 hz

This works as exprected (1 + (!HPF_75_1 *75 )+ (!HPF_125_1*125)) hz

I was sure kyma did follow the order of operations rules, usually i am more explicit .

cheers. it was a late one Saturday

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c