|
clapping meterI'm trying to think clapping meter to a public vote. I started with something simple: An audio input with a conditional to decide what value that triggers a Pusle. Each pulse is added to a counter. The problem is that if the threshold is always higher Pusle does not add to the counter. Example: The audience applauds strong, the threshold is always higher, then just add a few points because the value is always greater than the threshold, this would give a wrong score. How do I trade values above the threshold to keep counting? any mathematical expression for do this? any help is welcome.
|
Here's an idea. Now, the claps have to fluctuate. Every time the level changes from less to more than the value before plus the given increment, the counter will count. Hard for me to explain, better to take look into the code. Hope it helps.
I recon you should just fake it like they always did on TV shows ;)
Thanks thomas, I'll look you patch.
jejeje if good solution. so I decide who like it or not.
Here is an idea, I would record the volumen peaks to a queue structure (this queue increasing by time) and two index members, one of the index mem analyzing a previews member so you have present volume and previews volume, compare them, with a substract. if its positive, count up, if negative, nothing. :D