Skip steps in number sequence

Timothy Luppes's icon

Hello,

just started max this week. i made a list, via a counter I can move up and down the list bar via triggers.
know i want to make it so i have the option of moving 1 step or 2 steps at once.
only from what i understand a counter is only able to do one step at a time and not able to skip steps.

how would i set it up?

ps. it‘s important that it outputs a number so for it corresponds with the list and it needs to go in a loop (max value back to 0)

Please let me know.

tyler mazaika's icon

Check the documentation about counter's other inlets. One lets you set the next output value, which you could use when you're trying to do +2 steps.

Timothy Luppes's icon

from what I understand the first 3 inlets only respond to a bang and that means 1 step forward or back word at once.
And the other 2 inlet is to set the min or max value. so a counter would not be useful for what I am trying to achieve.

I want to have the option to go +1, -1, +2 or -2 steps between 0 - 11 in a loop.

tyler mazaika's icon

Read under the message ‘int’: https://docs.cycling74.com/max8/refpages/counter#int

tyler mazaika's icon

But I missed the part earlier where you wanted down steps as well. Another easy option could work like this:

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

Timothy Luppes's icon

Perfect. this what I was looking for.

can you explain what is happing? i dont understand what is happening.
I checked the helper. Can’t grasp it.

tyler mazaika's icon

The Help and Reference files are available by right-clicking on any object and selecting "Open % Help", for instance. If this one's hard to understand you should run through the first 6 tutorials.

Timothy Luppes's icon

thank you. it dawned on me.