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
#3
Hi Jens,
yes, you got it right! I've actually decided to use the phone's inclination about the y-axis to make things smoother. I created a simple experiment using atan2(ax,az) that outputs the inclination of the phone in degrees in the xz plane. Now, let's say that I want a sound when the inclination goes over 10° and it quits playing the sound when the inclination returns below 10°.
Unfortunately, I didn't really get your advices. Would a "threshold" module be ok rather than using "max" module? I tried to make the "if" module work but without succes. Would you please try to add some control to the attached experiment? Many thanks, Pietro.
.phyphox   feedback inclinometer.phyphox (Size: 2.08 KB / Downloads: 86)
Reply


Messages In This Thread
RE: play audio when signal goes over a threshold - by pietropicerno - 09-19-2023, 01:28 AM

Forum Jump: