Loosing my mind on select object...

EraserHead's icon

Hello,

i'm going insane with a simple urgent problem, i hope someone can help to resolve this mystery:

I need to address a flow of integers to different gate outputs when a certain number is reached.

So I have a Integer number box going from 0 to 700.
I need to send the first flow of:
0 to 98 numbers through gate output 1 and send a bang,
99 to 168 through gate output 2 and send a bang,
169 to 239 through gate output 3 and send a bang...

I thought this would be a super EZ thing to do using a combination of "counter" and "select" / "match" objects, but they both constantly giving me inconsistent numbers or even sometime missing the match!!
All the programming is pretty straightforward, i'm pretty sure i'm doing everything right. I tried to put a "change 0" object to filter the Flow of numbers and also tried to add a "pipe" to delay the flow slightly, but no luck!

I've been banging my head for hours and I really need this to be accurate!
Dunno what to do anymore...

Thanks for your help!
Best

Just-select-the-bloody-number.maxpat
Max Patch
metamax's icon

It's like, if only Max had an object that split ranges... hmm. :)

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

EraserHead's icon

Off course, just daisy chaining split! What a relief, thank you very much!!!
Best