-
abargum
Hi @whale-av , thanks a lot for the answer and the abstractions!
How would you use them in my case? Since the sensor keeps sending I end up comparing my new value with itself, and not an old value.
I would like to say:
If (newValue > oldValue+5)
send newValue
otherwise send the oldValue (then the sensor has not been effected enough)Am I thinking wrong?
-
abargum
Hi there
I was wondering if there is a way to filter out/reduce the noise from sensor inputs through the adc~. Often the sensors values differ in between a very low range, so hopefully, someone out there has tried to stabilize this before.
Is there an easy way to store the previous adc/sensor value and compare it to the new value, in that case, how?
An interactive example, however not in PD code, can be seen here:
https://codepen.io/dxinteractive/pen/zBEbpPIt has to be imported into 'bela', so external objects like [smooth] and [once] are unfortunately not usable.
All the best
-
abargum
Hi whale-av, that looks very interesting and a structure I definitely will incorporate! Thanks a lot
-
abargum
Hi there
I am playing back a sample based on the 'phasor~' object, where its modulation between 0 (start of sample) and 1 (end of sample) controls the sample playback/loop as seen in the first attached picture.
I have mannaged to control the samplesize and thus sample end, however, when wanting to change the start position of the sample playback I encounter problems. I have tried to control the phase as well as DC offset of the phasor (picture 2), however, it either only changes the sample start once in the loop and then goes back to 0 for the rest or does not change at all.
Is there anyone out there that has a suggestion on how to change the sample start in the loop, so that it loops from that point every time?
All the best