this task is make me crazy last 2 days... How can I get something to generate boolean=true when knob on analog input is changing value? standard logic/change don`t work because of noise on analog inputs and/or constant reading from analog port...
what trick is to solve that?
Logic/change with analog in?
as you wrote, noise is likely to be the issue. every time you read that pot value it is slightly different and therefore the boolean is always true.
try to decrease the resolution of your analog reading before you connect it to the logic/change or smooth the output of the reading. i would bitshift the reading by 2 or 3 (effectively dividing by 2 or 4) and try this way.
i have no axoloti here with me right now, so cannot test.
I try math/round module it make things clearer but logic/change not working after round module.
@nikitsan This works, just need to add a pulselength as the trig is too short to register.
It works with ctrl/dial but no luck with analog inputs gpio. Read carefully my first post where I mention this.
The root of this problem is in continuous reading of analog ports, this means that data incomes every moment, and because of digital noise small changes are registered constantly. This causes constant true value in disp/bool. You can double check by the scope whats really happen.
So thank you for your try @spacelordmother , but still no recipe for this...
edit:
I even tryed to use your patch with ctrl/dial modulated by modsource connected to analog in but it not working too.
have you tried running the analog in, into a low pass filter (kfilter/lowpass) , you can play with frequency to control how responsive input is vs reducing noise .... then into the logic/change
Ahh, yes -- I should be more careful in reading.
Try this out and see what you get:
This is 98% working here -- there's just a few instances on the dial where it seems to stick a little.
partial success with this
but don`t know if this should work in my case, because this patch generates pulse which not stops when pot movement ends but when pulselength is over.
Just to mention, I need this potentiometer behaviour in my glitch multi delay patch discussed here: https://sebiik.github.io/community.axoloti.com.backup/t/need-to-translate-nord-g2-patch-to-axoloti/3554/12
Need to translate nord G2 patch to axoloti
what value of potentiometer do you use? I have 10k and i discover (kscope) that noise is more noticeable in 50-80% to +vdd range. closer to gnd it shows clearer signal.