Init a Coll object (not clear)

Learn about building and using Max for Live devices.
Post Reply
lqud009
Posts: 95
Joined: Fri Nov 13, 2009 6:43 pm

Init a Coll object (not clear)

Post by lqud009 » Sun Jul 31, 2016 11:49 am

Hello,

I have a Coll object wich contains the values from 0 to 127 like:
0, 0;
1, 0;
2, 0;
....
120, 0;
121, 0;
....

In some cases the 2nd Value won't be reset to 0. Is there a way to set all 2nd Values to 0?

Thanks

chapelier fou
Posts: 6355
Joined: Mon May 15, 2006 12:15 pm

Re: Init a Coll object (not clear)

Post by chapelier fou » Sun Jul 31, 2016 12:16 pm

In your example, the 2nd value is the value, where the 1st is an index, isn't it.
So an uzi 128 triggering 0 would do the job.

<pre><code>
----------begin_max5_patcher----------
421.3ocuTEsSCCBE8Y5WAgmqFJsat4uhwrPaINTFTozYUi+6RuTbN0LaMpOT
Z3vEtmy4dgmSPjRSunkfuDeEFgdNAg.nA.z3bDYGuuRwagvHkcNmQSRCK05d
TI.7HhoyoDN2iMhvoRJ45aH3qGWtg6p1J02rwJpbgHXYryoo3EKFFYEww21h
rFRfo71yVDyhtamT6yCvorCfgrGPG.eIIYXHchhSKdvmlXRbhdfhdRWcGlho
yP0mVwEfhyxWABeIHY1WK47uTxr+ZI28jDmwVM25b5g+RsaJk80f5KVeJOfM
COH+2yCpLJEdqPoLp66poz0yo9m9tuozKbAz9mQomxHxlQ+eQjr78h5M9c6S
4FtyYk9qvg67n27CDQrqT.IhB.fCF8QfJDkT+wmJ.8Lfer41Z5rUQmX7dK9f
fpEsNol6j92QNDC6nX1JqqEvxz3tjs7R0633mJxSkM4SfMY+arYP2rugM4+P
1DJb7ll8Ba63QBDw2+eqwNL8hTXpTGlBWpHVwdYLdnOhvs9FWmuEpyF576Ws
jD1poVX0cxwGf7Y9kjWAmpibCA
-----------end_max5_patcher-----------
</code></pre>
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

lqud009
Posts: 95
Joined: Fri Nov 13, 2009 6:43 pm

Re: Init a Coll object (not clear)

Post by lqud009 » Sun Jul 31, 2016 12:29 pm

yes of course the 1st is the index ;-) sorry ...

Perfect, that's works - again thanks!

chapelier fou
Posts: 6355
Joined: Mon May 15, 2006 12:15 pm

Re: Init a Coll object (not clear)

Post by chapelier fou » Sun Jul 31, 2016 4:17 pm

Always a pleasure.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

Post Reply