Thread: Decibel Meter ?
View Single Post
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#85
Originally Posted by Wonko View Post

The counter for the trigger is useful if you do not want to execute a command just when the threshold value was reached or exceeded once but you want to make sure the threshold value is reached/exceeded some 'n' times in a row.
Currently, the audio data is picked up with a frequency of 25 Hz, so if you want to trigger a command when the threshold was exceeded for one second you'd have to set the count to 25.
It is a accumulated count for the whole running session lifetime?
Or in what time frame the count is accumulated?

(signal processing is very much alike as in SleepAnalyser, so you may want to check that, i.e. value and sample smoothing)