Introduction - If you have any usage issues, please Google them yourself
This experiment is completed weighted mean filter, which works as follows:
Set data collected by the beat input, in turn represented as d0, d1, d2, d3, d4, ..., the output order of
do = d0* 1/4+ d1* 1/2+ d2* 1/4
do = d1* 1/4+ d2* 1/2+ d3* 1/4
...
Assuming the data collected for the eight unsigned, leaving only the integer output do