This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

play audio when signal goes over a threshold
#4
Photo 
Hi Jens, 
sorry to bother you again. I tried to use the "if" module like shown in the attached picture and I succeeded to play the sound when the signal crosses the value of "10". The problem is that it doesn't quit when the signal goes below 10. Honestly, I'm having some troubles in fully understanding how the "if" module works (not a general "if" statement I mean, as I usually program in Matlab, but PhyPhox's "if" module specifically.

In PhyPhox wiki on the analysis modules, about the "if" module, I read: "  For example if you set the true input to empty, do not connect the false input and set the output to clear, it will only clear the output if the condition is true, but leaves it alone otherwise. This can be used as a reset condition." This looks like a possible solution to stop quit the tone and I tried to implement it but I couldn't make it work.

Any ideas? Thanks for you patience,
Pietro


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
RE: play audio when signal goes over a threshold - by pietropicerno - 09-25-2023, 02:22 PM

Forum Jump: