Takeover MIDI values

schlam's icon

Hello.
I am really sorry, I search the forum for a quite simple question, and each solution doesn't work properly.

I am just looking for an efficeint way to make a float numbox reacts with a takeover mode to an input.


Even with integers, the solutions I found doesn't work perfectly if the slider.numbox is moved quickly.

In the solution I use I have to use a + / - 0.05 to maximaze the chances that it works when move quickly, and I truncate too the decimals.

It's not perfect and not very accurate since the value takes over in a range and not an exact value... It's almost working but....

Any idea ?

thank you !

Max Patch
Copy patch and select New From Clipboard in Max.


Jan M's icon

the jumps in values when UI input changes rapidly will be unavoidable due to the scheduler minimum interval and other aspects. In similar cases I usually pass the value to the signal domain, smooth out the input (rampsmooth, slide, filters etc ) and try to detect passing the threshold with MSP objects. And then at the end convert it back into the message domain.

schlam's icon

thank you Jan for your light.
But it should have a 100% working way, since it's present in lot of programs isn't it ?
I will try with signal domain objects.
..maybe have you a little example ?