Problem adding numbers with a trigger

Rasael's icon

I have a problem summing up two numbers using the trigger to activate the right input of an add.
I have connected everything correctly (following the add help).

The problem is that when I move a float knob from 0. to 5000. everything works almost fine until I get to 5000 where the output of the adder (5000 summed with 0) is lower than 5000 (ie 4700ish) . evertime I move my knob (or a slider) to 5000 the value never reaches 5000 and its randomly a bit lower.

The slider has a step count of 0 (automatic).

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

I need this to have a slider with float values from 0 to 5000 summed to a knob with float values from 0 to 180 to finetune.

Nat's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Your live.numbox is capped to 5000, could that be the problem ? With a normal float it acts normally:

Rasael's icon

Thank you for your answer. Unfortunately it does not solve my problem.

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

Here is the complete patch ( with dial and slider)

If I move the slider to the maximum I don't get 5000 but if I then move the dial a bit up and then back to zero, the reading goes to 5000. quite strange isn't it?

submo's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Swap the order of the float & bang outputs of the trigger, so the float hits the add before the bang. The final value of 5000 is never 'Banged' because it comes before the last value of 5000 from the slider.

Rasael's icon

Thank you for the answer and the explaination. It makes perfectly sense cause I notified a value before setting it..