counter problem in a random sample player

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

Hi. I've made this random sample player to use in max for live, for a friend. I've got a problem with a counter object when it's run in 'loop sequential mode' : instead of starting at 0, the counter resets at '-1' so it will play the last sound of the menu twice. Other modes non looped seq, and looped and non looped random seem to work fine.
I had a hard time building the logic of the loop on / off setting so that should not be the most simple option... Also, I can't find how to save the sample folder with a set using pattr family objects with preset.
I guess that's a simple one, but sometimes, you can lose focus on simple things...

MIB's icon

random-minmax abstraction is missing

MIB's icon

starts at 0 here...

Stephane Morisse's icon

I'm on mac 10.8.2, max 6.08 Live 8. Did you find the abstraction ? Can't remember if it was 3rd party...

Stephane Morisse's icon

Did you try it with max 5 or 6 ? For me in max 6, starts at 0 but as soon as it loops, it will start at -1.

Stephane Morisse's icon

MIB, can you confirm that this works for you ? As I wrote above, first pass is ok then, as soon as it loops, the min is set at -1.

Stephane Morisse's icon
MIB's icon

sorry, been busy...
It works as expected for me if I bang the counter directly...

Stephane Morisse's icon

Thanks to care. What is your OS ? It was confirmed by my friend who works with 10.6.