In Bug 1340, I described an improved PWM filter. However, I see a much more general approach for signal conversions: Start a framework for signal conversion and filtering. Sigrok could support the following conversions/filters: - analog to analog (e.g., filtering like averaging, adjusting the sample rate) - analog to digital (e.g., schmitt-triggers) - digital to analog (e.g., pwm to analog) - digital to digital (e.g., min/max/majority filters, adjusting the sample rate) A majority filter for a digital signal would take a window of a configurable size and output the digital value that is in the majority. This would correspond to oversampling as performed by UART controllers in some STM32 microcontrollers. Another digital filter would be signal compression: simply remove samples that are identical to the previous sample. I am not sure, whether sigrok decoders can handle that.