clapping meter

gnomalab's picture

I'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.

PreviewAttachmentSize
GN_contador_incremental.qtz3.99 KB

thomasvanta's picture
Re: clapping meter

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.

PreviewAttachmentSize
GN_contador_incremental_1.qtz7.33 KB

Scratchpole's picture
Re: clapping meter

I recon you should just fake it like they always did on TV shows ;)

gnomalab's picture
Re: clapping meter

Thanks thomas, I'll look you patch.

gnomalab's picture
Re: clapping meter

jejeje if good solution. so I decide who like it or not.

offonoll's picture
Re: clapping meter

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