porres / pd-cyclone

A set of Pure Data objects cloned from Max/MSP
BSD 3-Clause "New" or "Revised" License
206 stars 25 forks source link

[counter] changing direction after 'set' message gives wrong output. #577

Closed H-MLim closed 2 years ago

H-MLim commented 3 years ago

image here's a question about cyclone/counter. when I set numbers > change the direction > and press the bang (so, in a short, [set 10( > [0(1)( > bang), the counter adds two from the set number (in this example, I intended to make start from 10, but it goes from 12) and I don't know what's the problem. It's OK when you already turned the direction, but for the first time to change it (for example, 1 > 0, or vice versa), the unknown two numbers are always added. am I missing something from here? test.zip

porres commented 2 years ago

Counters can be tricky... In order to fix this, we'd have to change the code a lot! I will mark this as a 'won't fix' and as a "known bug" because there are simple work arounds, like changing the direction BEFORE setting the number.

Now, the same bug exists in the original object in MAX and if you want a better, simpler and nicer counter object, try [else/count] :)