Very simple numbering algorythm

Questions and discussion about building and using Max for Live devices
Post Reply
toscanini
Posts: 410
Joined: Thu May 05, 2005 5:42 pm

Very simple numbering algorythm

Post by toscanini » Sun Oct 24, 2010 7:03 pm

Hello,

I am sure there is a max object that features this:
Kind of like "indexing" of added elements, by increasing numbers. If one is removed, the gap is left there. If after this a new element is added it can take the lowest available gap.

I realize the coll object has some very powerful features, but not exactly this, at least not by itself. What should I combine coll with?
cheers,
toscanini

crx091081gb
Posts: 14
Joined: Thu Nov 26, 2009 6:26 pm

Re: Very simple numbering algorythm

Post by crx091081gb » Fri Nov 12, 2010 9:13 pm

You can reorder a coll using the sort command, not quite the same as filling an empty slot but might achieve the same ends, you could resort after every add so that no empty slots exist. Dunno if that helps.

pid
Posts: 354
Joined: Thu Nov 05, 2009 9:51 am

Re: Very simple numbering algorythm

Post by pid » Sat Nov 13, 2010 10:04 am

hey,

i seem to remember seeing a really elegant solution to this once. but i am not elegant and neither is my memory, sorry... one thing springs to mind though: it depends what you mean by 'delete', and what your data is, and how you need to access it. for example, instead of deleting, you could 'replace' data at an index you consider 'deleted', with a word that you do not need elsewhere, like "empty". then, keep a 'sorted' list of all indexes containing "empty" ('route' "empty" and 'zl group' the index numbers, 'zl sort' them however you need, keep them in a 'zl lookup' for querying later, etc). just a bit of patching in and out of coll. coll is very powerful.

of course best would be to store everything in a pattr-ed Array in a javascript and query that by iterating through slots. also quite simple and less hungry.

good luck.
3dot... wrote: in short.. we live in disappointing times..

toscanini
Posts: 410
Joined: Thu May 05, 2005 5:42 pm

Re: Very simple numbering algorythm

Post by toscanini » Sat Nov 13, 2010 9:05 pm

:idea:
I see what you mean. Like a list of the deleted items, that can have variable length, and it is always always the lowest value that is taken. Cool:) thanks!

toscanini
Posts: 410
Joined: Thu May 05, 2005 5:42 pm

Re: Very simple numbering algorythm

Post by toscanini » Fri Jan 28, 2011 12:29 am

Hello,
after some time I come back to this. I thought of this kind of indexing to save and edit selections of samples (with sfplay~, even with "clear" not working), but could be used in other contexts.
Very simple it is not, very buggy it is, but it was good fun to work on it :lol:
I'll try to fix the bugs in the next days, but as always, I'd be grateful to learn about methods to do the things simpler.
cheers,
toscanini

<pre><code>
----------begin_max5_patcher----------
2035.3oc0bssjahCD8YOeEpbsON6T5JB121s1W1ugjTSgMJyvFL3BvSR1T4e
eQWvWEFYOffToFKCFG08gVce5VM9GOrX4phuIpVB9CvG.KV7iGVrPcJ4IVXN
dwxMweacVbk5xVttXyFQd8xG0eVs3a0pyW+ZZEXcQVVyK40wo4Uf5WEfrzpZ
PwmAhx3JQB3e96pm.+02AaKEUUo4u.93x3jjOtTcsaiqW+JHqn3KUfWEkBvm
SKa91w4IfRw5uuNSTAJxT+mzN8Yo4h0E6xUx.0bxzDkDUr5e+cDl1doetQrx
i2HTe1eVlFm09I461jlmIpUJH5vIK1U2dVn4rJQrQtetQfp0vFNf+D7Q.K.I
GPDl5H7SPvmNZlqR+O0LifOAkm8mO7f7kGGBTeWyGs6TXO9s3zr3UYBPkHqQ
TSKxsBYXaPFYrgLBJRiUX0.hJGvQCKjsowBK9EwEPVRCfTK.nkVTcTzMp5Xq
pdKfnOU822Jz58xk6UPanBjnLcHH8fBaB6BTv2EnjK9ZihdAlTBznhULgeiX
BbDvDXnbfRuNl.GRLo5ZXRvXuDAoUbBKPo3AdTwW+Zb9K1Ua1fn1jNMEdDrL
U5kSObMCCDU46ff0tagJOHvAdwxtMqDksJ1awk603Rw1LK.TD9NwmUuzD4rn
TqZvmB3gTB5wl2EhhBfgG+NzQ53ovJtKX0.oqZts5BlhCUAzHiCldhM2IX5E
FhMhXcIn4ecf1vw2ZT820vLLVsNM.qhnEv5EyLmtg+ScQoYpB2e0UwuIRdtQ
6Zlfmkpe5pc0ZBZK1inRAorQcqEkOKxkQ4UNSTel51w.4HnFrBrxBvGFMH.e
m1qJC0avfs0W.c7cBbLJD9K8hcigKKJb7Vr2EELabuBPSH0KjlYAinAC7SLO
R8pH2VvVVzDR6pEOPJ+YDhWoc0AdDN5TtX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jShP06ieAZFE9T+JqM.2vF9r0vF00jLEwOG1syn4BS2raSusZjK15Dh
osrQyrJALkY0X.ErY2J8aG.Sms1JTSmFM2JZDYJqYjYaTw2tkh5ZT91O6QkT
MMxyeJPUUrqbcqPs+AKCbXtRDU0o468f8gC6hwQWzqoIIh7iqP7lzjsEM1.6
yh058M2EJlCBk5YcxqRE2IoZNhUD+BUxG2HGPJlWEJ4iEQuBk7Q2wixTfKq9
NSvGcbxEY5r6vdQlP8HSL+hSxlctWYJLx+1S8ISH+duS97yL2hvvbJpGx+1S
85zzy3jKg7NagfWjo9rwkMnqGwIhKA7NCLGcbJv06cdTlHtHSdlWmKq6X90W
.0ERcb+JSjYXlBTWhsP7KOSmRS.6WabhKxDwu7mPtvUAS8uL0GNcihDIT0qc
5M1lQ1ev6NwOWLy7aXP0z0KMc+KR850xyQbXtxRm3WYZl4cm6hItmqh.xoRa
P8eVej4UVejg2Q56Ekbglme8M4hHoh.5O+.XWXCS7aUxNa55Pl7KwyQnnqZt
AjP8OoVLz9iduvWvHPR1HeTcCugozKOBYZL.T39iduZhKAN8LyZWhaRuUJiZ
HCC0a8bD4xiPLyO7bGN58ZR6hMM0u4HPcol8TOmyoS4H32Z8P4ivRbisEQ2k
XLL6xiPT9wKwo72sUHCO+ti6TpVL+xuh4ZZMX+QvJXDRgP1UIL4O3SPkOPDc
+QmHsMG7yG9e.vBbJSB
-----------end_max5_patcher-----------
</code></pre>

toscanini
Posts: 410
Joined: Thu May 05, 2005 5:42 pm

Re: Very simple numbering algorythm

Post by toscanini » Fri Jan 28, 2011 7:49 pm

This version seems to work without bugs, there is a small mod, thanks to broc for helping, the problem was the coll object on simple recall (1) would output all (?) its content and not just the corresponding data. I haven't found the reason, but it is fixed anyway.

<pre><code>
----------begin_max5_patcher----------
2232.3oc0bssjaZDD84c+JnTkGWuE8bAXxaIUdIeC1obgjFuKwRfJ.4Kwk+2
CyEX0tBDMHXDtbYACBA8bnub5tG1eb+cqVm8MYwJue268d2c2Ot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
gI5jWKEa2YISjlh9Gp8s+l28c88Vc7WCTEYGy2TKo0u.6dub+2JKJSRa7p89
WVyzmbROmrcqL8zUPv9jsGxpzKZRvs0GaCRlfdjI06SsCkI0xjtWb5Mf4bKS
.lmcp2d.GJSAXvI30OfOWlv0bq2H4DfoxpInxfRkbiueynqbNQ.ryoE1ydha
saeiI4h.mPoNpdKKcrL0m6MpaEI8abYu.kvstRBvDZZfxjh4JWU1s.cy1MtL
zit1.DXDV0Lh3vGpHjIUKScYbTBBYh4VEMUKy5O1NeXxDiQUpVzPahk7yGAL
SxTPTynqclfwc2altyN5Fs.ehyvHStk4DEiGj2H386tynaQ7MsGPPOeDXVvC
V8U8noXlzW.N2FeiFLCl3plzohdXW3HAryGU2cTqItZz0p5hYhLPvkabUEA0
sdrdz0h5XHD5V9fDT3maysjfQ4TK3T2Q9BC0A2ZBiw8n6y0k1WxECjeEgyq+
a5l1igltpdz0xFDCyKvsHXHpLqcqdFpLgBDtWl.LZZtyCAghMiGe2JSvhxsE
pjvHNt3Qho2WJ0PzTT+mer5ASgnBXhM5vHQnxWzsYO.XjIhasFYvLP59Ze1I
Vdd2YXh3D51Z4BX3IycqLwwDwg6VcbNJhxN1+DFldb2VEH8sqO+3Lp6kITO6
.2ISXr6.GWHdX44yLPfkQ7Px8hDMO4d8FknN5TqaQvHLHHOx8xTucgxscrHB
S8qEtshQBT4x65DmQwAEbryK.lcFeUC948+um+gmi
-----------end_max5_patcher-----------
</code></pre>

stefan-tiedje
Posts: 219
Joined: Thu Sep 17, 2009 3:50 pm
Location: Berlin

Re: Very simple numbering algorythm

Post by stefan-tiedje » Sun Jan 30, 2011 5:01 pm

I'd try to do the administration in the coll, and dump that into the menu...
Maybe like this:

<pre><code>
----------begin_max5_patcher----------
2202.3oc4bssjahCD8YOeEpXe0YJckK6a6q6Gv9RRpTXihGRvfK.OISRk+8E
IAXtZDiEDO6VSBdjPVbzQc2pUql4mOrwZWx24YVf+D7dvlM+7gMajUIpXSY4
MVG8+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.FLnbABYNkxxbsmM1isiVIUn.hD5hNEZmPp32HHGa
piozJQXc0JkOr1mpqZNtaH1Kmo6EZcQPL.jZLObb0IsN5k9AUe3.p2StaVXh
NElXyCSzBm7bfPHpP6g3pL9qR.i1kPPb09bXkkLwvgMwvQDIjYMbXdB7QbP0
4tb2RH0VYwdtxQhG4lGI3Vmb3XSLn0WXAMAln30GSSwSh2Jz0FS3ovjyphoN
Ot6i4NlFxSh2goFMZRLgKy9dpJ72XksEQoakAg5HostLXmG2UxSkYfIBAJ3L
l5skmAc5WRExbBytpvMNNDuPeSpwL2kgLAlzR5b8vDRGqcRfux7josrfnRYP
JhzTPCc6qqRzwNHaldH3Js0PHk4Ytcco0.ryUsPAVy66kMbAjCvPxxHGHmhm
R61dc8af4t.xl2JlX5fI20ESDcvzJuZAVGeimIOQwJqf1xEcqj9EkLAZgFFs
2Hln5fI155eE0cAL.WNOxTuEMh8B2qj4sNS0QOFut167zQHbcUiw1ZnFuxzD
FpClbl21jtUOSzZtac4ID79CSTcvD1a8wzTxSnUNNj5rj9biaW4dUU+g.Bq9
axQ6RH0qCEgIWmUV5VUV8zXmrX602nFVm.OiVWLQLrQMpsbkUrJJyDWZcISf
VnNncEmU0Yyg300GNDQCSKdybREiTJmk+UajUWxDfEZVv14Did3WO7u.OQ41
i
-----------end_max5_patcher-----------
</code></pre>
Les Ondes Mémorielles-----x---
--____-----------|----------|----
--(_|_ ----|\-----|-----()--------
-- _|_)----|-----()---------------
----------()----------TJ Shredder
http://tjshredder.wordpress.com/

toscanini
Posts: 410
Joined: Thu May 05, 2005 5:42 pm

Re: Very simple numbering algorythm

Post by toscanini » Sun Jan 30, 2011 10:23 pm

I am looking forward to check it out!

Ziemlich geil, dein Projekt mit den Glocken 8)

toscanini
Posts: 410
Joined: Thu May 05, 2005 5:42 pm

Re: Very simple numbering algorythm

Post by toscanini » Sun Jan 30, 2011 11:17 pm

Stefan, one nice feature about yours that mine was missing is that you cannot add the same item a second time.
Would you please add a function to put the last entered item to show up in the umenu?
Now, as for understanding your patch, I'll try tomorrow, with fresh brains.
cheers,
toscanini

stefan-tiedje
Posts: 219
Joined: Thu Sep 17, 2009 3:50 pm
Location: Berlin

Re: Very simple numbering algorythm

Post by stefan-tiedje » Mon Jan 31, 2011 12:21 am

voilá

<pre><code>
----------begin_max5_patcher----------
2299.3oc4bs0bahCE9YmeELde0Mitxk8s8Ow9RmNcvF0DZwfG.m1zN6+8EoC
fALXDwBBc2Is3HAV5nOctoy4P90Ca1tO4GhrsV+o0Gs1r4WOrYipKYGaJauY
6Q+ebHxOS8XaiEeOY+W2tCtUt3G4pt+fEtpuv.UOEO0Gb4Uc9kj37X+iB0s9
aQZfere08hOeLLNRjql.RYmm7yO7bX7SeNUbHGHPhq6incVLts7CJ4Q9NKB5
Qj0mtLPImyqFIbioNK7mpoFiK9pP2vSl+5IAL5aCiKlmOIu4+7vCxK6tOHQN
d8.IDiBINLIVvoNqKH4nHKy+IwUXRVRZt0GvE+q5VQgwhCImiyatRafWNNlD
un1HEP4PfOTWwFCuLKXcHR3mtyJSDIo+dfFixJQI3FrRNb4Ur66LzLfnUfHx
+UKNB0GpflCTAoz43ntZPAr89wOYTj4Tp3jHNvJUbL4EgtBY1SGyvCiYXOFH
coj03dpFz0ImzgjnHq+.cTDetWKXbOihL1fFGlBYvH7HrSroBM6Z7+5wLy+E
QvmKVMEzwm8yySC2eNGr5uoFs1rUbbuPsvQpNT3qg4Jyd839jn9fY24.lQd.
LiLrTqQ4.ySFFU3y.pPbU19rwqZPwJ37wSV6sT1.6CZXFEZnJz.yT528FCZn
SDZjqEoHoRa+tRC6FEu9YTgF+m5CmnlzZXEKDGXgbGAmHuE0WlDVRKlBwMz5
PLISDko.GFSANtz0N3ToT1+j7idfGl6b.OvIVV4JkOYU7.IG5CT3lET.EOdJ
QIPrxrXRy4Vj10l+WBiDuHRyBShaL9a1dgB4p8IviNlKB1BabrfB.9onjCeq
z0gpNCDeYJiQRAK3kmW8Dstz9ICiK3cyDw494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7BGyOcLe58lSUSYJCP
caggWdTJWYSS05dEV0w8XxxZECS0XC2ahYSffAHq7O7n75VlfXQlkX6jqyG9
mG9W.Zxwg9A
-----------end_max5_patcher-----------
</code></pre>
Les Ondes Mémorielles-----x---
--____-----------|----------|----
--(_|_ ----|\-----|-----()--------
-- _|_)----|-----()---------------
----------()----------TJ Shredder
http://tjshredder.wordpress.com/

toscanini
Posts: 410
Joined: Thu May 05, 2005 5:42 pm

Re: Very simple numbering algorythm

Post by toscanini » Thu Feb 03, 2011 12:22 am

Hey, Stefan,
just a word to say thank you:) I'll be back to it soon. This has been a tapfer week.
cheers,
gergely

toscanini
Posts: 410
Joined: Thu May 05, 2005 5:42 pm

Re: Very simple numbering algorythm

Post by toscanini » Mon Feb 07, 2011 12:00 am

@Stefan,
I finally had some time to study your patch, it was funny to compare it to mine, they really play in different leagues :lol:
Hope you don't mind if I ask some questions, so that I have a chance to understand what is going on: for example I'd need an explanation about your use of coll. You use assoc to include the data itself into the address (?) of the data, what is the advantage of this? Is it precisely in order to avoid double entries?
thank you again for your patches,
gergely

stefan-tiedje
Posts: 219
Joined: Thu Sep 17, 2009 3:50 pm
Location: Berlin

Re: Very simple numbering algorythm

Post by stefan-tiedje » Thu Feb 10, 2011 11:17 am

I use assoc, to be able to recall an entry by its content... The entry number within the umenu can change...
First I thought, that this method doesn't allow double entries was a downside, but your reaction put me right...;-)
Les Ondes Mémorielles-----x---
--____-----------|----------|----
--(_|_ ----|\-----|-----()--------
-- _|_)----|-----()---------------
----------()----------TJ Shredder
http://tjshredder.wordpress.com/

thomasgoepfer
Posts: 5
Joined: Wed Sep 09, 2009 6:19 pm

Re: Very simple numbering algorythm

Post by thomasgoepfer » Sun Feb 13, 2011 9:08 am

Another solution with coll ;-)


<pre><code>
----------begin_max5_patcher----------
1110.3oc0ZssbapCE8Y7WgFN8wzLnKbwcZOyzyuQmNYvfpiZAjGPzSR6z+8p
a1FWG.Epqb5CwDDxaVZo09lR99pfvM7Gncgf2.9.HH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9OY7z88T5R.U30NfpFTGEuG+CCoWXpwOc2pi22Vr
mxsoD.GWZkzNAq4fV5CGqsYvjtmUVR0Oe+1QMqbmrpLwgVJdRoiqPRc.u.3b
XB+BDSD+hoHW167KlTmX5r7zu.bufo43I0oC4SLgbASq8JlftHmR8KM4Dl7J
jHtDHvyrDwEwjeChCcFSvIvzI44gYQ30HU18DLDmh0o2OMG+urFvjX0QpiL+
GCPRSuEc9sI5psvlyuQcyu6JO0EERre2MRcwOxyXJ9kW5KnKgk8boGNEvYNG
oKOjlikx7JIk4.hR7a0YNfHOWalCH52QZKu4Gq9Is+gtF
-----------end_max5_patcher-----------
</code></pre>

Surreal
Posts: 560
Joined: Wed May 17, 2006 1:18 am

Re: Very simple numbering algorythm

Post by Surreal » Wed Apr 06, 2011 7:54 pm


Post Reply