many bangs generated as fast as possible
Hello, I need to generate (for counter object) a certain number of bangs as fast as possible.
How could I do that?? Which object should I use??
I have used metro object, but it has not been fast enough.
I thought uzi could be the fastest way: if you type "uzi 52" it will generate number 51 on a connected counter (starting from 0) immediately after you give it a ‘bang’
When I used uzi it looked like freezed for a while
that will always happen when you send lots of data as fast as possible.
but on a 1 Ghz computer you should be able to send like 3000 bangs without
noticable effects on midi or graphics – how much are you sending?
for 100,000 bangs i suppose you want to find another solution but bangig a counter,
or use multipliers behind the counter.
or put a [defer] object behind your uzi.
Am sending from 12000 to 15000 bangs.
I need the numbers for lining the text object.
Thanks for your answers.
Does this do what you want?
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 355.3ocuT9saCBBEF+Z7ofv0tEDb1rc2dNVZVPkYYQAihYc1z28wej00U2lo sY2.xGGO7c94Q1EAP4ps7dD7A3SP.XWD.3jrBfo0.TCaaQMq2EFJePqURTre KQoSTk+5MYAM0ftlq0u2x84EkyjUH35osaY5hMBY0yc7BsOBZVxs3X3Jpcjf Cie9JxgFgzjSmCRNH5OIupUbeTjcHdgkhj+lw3Aaq4ac1w+vo0WZP6EkTKYM tpC8XmfU+iUNJdp5MyBo9WgPJ9NagmrhXmRyNgB1ysWL5xchMnECG50CNi0l yFiwvpN0P6LXhdlXZQrgtxNcO9rXCYV1PtdrYXT3gyLXgbFXIz4rzNnoeiRv tdmL5UjResCxkNTsP98KNbVxpeL55UCcEgZZ5lB3ASUx60BISKL2pbHFxQwr QTVxcaG7binrUY.xjEfqm8y3RcDcANJ8e0Q15m7GNhdANxrXezG.1fNXWA -----------end_max5_patcher-----------
Am afraid it does not. I have something like:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 378.3ocyU9sSBCCEF+5QBuCMMd4zP6X.y674vPLcaGgZ1ZW1JQThu61+PgIN ISBJbSOKe8rS+5u0d1lgCBvox0PCFcO5QTPvFsRfUynD3EBvkr0YErFahXwp xTnFGtcNdtUUl9xsTxN0mkBUC+cvLGgd2Hut9k4hBPYKEokpbkxKSaWDAqzV D7C0bVwt56RW8VE3LOlKT3PDNkIVfQy8oUwTYK4hEOUCYJWlTxTscPjYwlP7 HyHUOhlaemOFNvD0gvdSjRnogs.5BIjjeGRnciDxofjiyAxrD6VOIxQ.hiJm UPnf01UCWvE.5FRmDZ50Jg1dRgRGaBim7WBnZfk2IchuZO+Lg1hNQwmA5HfW 064uCG6CcAmnyR+lnSBN9lMgtdO85tVbx9SRc1ywUE60kC6JaKqYhCHXibUc l2UdpfFs2O4PihKXJtTzNqjul0RddNXSXG6J44UR8daqSN1G1daNyuH5g4ld QL2gK6OXtnKi4h+mLmQPG9DiahLX -----------end_max5_patcher-----------
and I need to automate the input for line message of the text object. So the numbers will come very fast from 0 to X.
and numbering textlines in [text] is so timecritcial that you can not [defer] it?
am not sure whether I understand your question well, but I tried to put [defer] behind [uzi] and it worked only when wasnt connected to [text].
When connected to [text] it seemed to freeze.
I would like to achieve automatic scanning of loaded text file line by line as fast as possible.
when it still freezes when put to defer, there must be something else wrong :)
you could try [metro 2], but also with [defer] … or not fast enough?
So, if I’m understanding your post correctly, you want to read a text file into the text object then automatically determine how many lines of text there are, and scan through all the lines of text as quickly as possible. Is that correct? Then, does this work? I don’t have any text files with 12,000 lines in them to test, but it works just fine with shorter text files.
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 523.3ocyVFrbaBCDF9L7Tng1iTORKFCzdpuA8dalNxFUG0wHnfXpSxj28hVA 13FRMXyj5KFuqVi92O8KI+jqi2578hJOxGIek337jqiClxjvoM1wKiueyNdE VlmR7670+zy2NjVrWio0j0DYWVYJlqotOvV1k7G4JshmIvg9bojuqaj7Z8Ng V+PgvJDu0b0VOehmT07xuqspBtdy8R01uWJ1nsExhfETeBKL17H.VD5S.5B5 geiYNqjOhuWloVaZUclT0LkXGwNlzJDLKXR9rqq4C+QhlLQUEeq3Er4W0hxG FhMvEvl+MPnAFR.Pn4wRFRm3IBDXPfvt.f7Jdk5GkMSNkRGfIvUXWlpsIA4y JKxnyBkBlQay69BoHu3SeqbHqSxrachSvMQTlEG+u8NuFU1IUBx6YCwjn4lI .aU+sSqtQQRofmNDOBmcOxJnGOBBuMOdA+x.3H3RvwTNVwtCBBSN5Vloai5e rB95vsA+081njL4OEYU40ka55mNPPfCpJUTokJtVlq5WTy81jiR+dYZp.GuS 0Yxzh7FjzJBimvb6arssirONIhsL1ZXXlJwHxcCtrO5NwHR1Y5D3jZNaivRZ s0GtIMrMZNDKcDhcBT+JkDLFiPzapjPy44VRYSDS.C5YGSBdY.ytnyr+ERSz 01GvHVswl8Mjsg2fZJ5FTSAiQSIWglZBd18OOhlCNA -----------end_max5_patcher-----------
I have an epic sh*t ton of abstractions waiting in the wings. working on organizing them now. one is called mat.sluzi. Here’s the abstraction and the help file.
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 596.3ocwV1rbaBCDG+L9oPCmIdjDeXbu0i8YnSlNBPgnVPxiPLwIYx6dkV.a RhwgRbc3fzfjX0+8m1cEOuxyOSsm23i9F5mHOumW44AC4Fvq+cO+Z197JVCr LeI+AU1u8C5lxv2afgqTrhZdSChLLkp0TwMlG2w6LuuO519otWTTvktgI8iH J.qXs7MjjAKbmRZjrZ368+tVvpFlYGyjeuPV9KMO2zYdRzl03.a2VW2Fpqkh WiOrox1Zgzpnlw6qaKZDOAaAw8MGVam76VravWVsx0DLSLkqpq4Ry63T6Sh. TVqAUod.sSKTZg4w0HzOjFtrfWftSoQYr7+TpUsxB6RT4VrZ80ASUIj7b6bf 8nmfewKheI.9RCAH18RXzEAe3KH9pYl0MUVHdvG0kYcN.1I4wMznPR3lCNvX DEtHDAQV2.sgzDW21zQDxIxbUkROO87g.MEeAApMjynjSlalwrAXmDU3y.DZ JjkEcHYaNobe9bKiprrhOouHboFmvUROmmzU7Hby00SlnXZM2nUHBF+uedsv hmPPMAh3PIwm28o+uqcZsPFWe1y2fyffkU+i1U5iRIttX7E79C5BXf6tTVI+ cgFawtmYbG6HfrrpczMPxv1HfGjt.jutXhIxTd68AmNSI3X+TUGHKCRag.ER Lvp3zKXlS3HJAlCt4+M+qFHI23uFcMpVc9.A5CAPGEUAuwHjLiPIGsFxqVyw +QaPd0hhcJK95k.51SdLNWEkNCEkbUUTxbXD9pJI2QB8CjT70UQygRgSHIxW mjR+DRx9xKq9KfXfJP. -----------end_max5_patcher------------- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 526.3ocyVF0aqBBEG+Y8SAgmcK.Nss22teNtYYgprNVTnQvrd2x9tO4fs0sY qslMiuXCGnG9e94e33agA305cBCF8Gz+PAAuEFD.gbABZGGfK46xJ3FXYXop PXwQ9Yz01lQ1+uU3SAFitucJYNrb85muId+x2xsYOIUadnRjY8+CJgdKIBkj 3dxN77PZT0kvNBaN4XP+NCQosQyzkkBEjWL1E58vP2inKrx7oD+c8yNi9iYN IGmRuD8S6U+jea8SOi9SSlM5uTXL7Mh8h0J14y0VdsQbcNN1AK2iZkUwKgUi +akjWbNy3hkN.PSWdaRD5tXXvxSQCVmsvHeE1BpyNzqIcD.QIdooX9FOrnJg ot7zHoc5dACcbfApKDaA.ljEv.xP1joFL4hGEUE5WtRuBYbHgrxeXg.HIcdh DKRhVeRdHaNsFgvq4pM8hF5pQhFZmiQM2Pl7igF1OGZpeUhHHxIgCPkni+5f UuPZ4nfj+hWJMEtpY.6yUcUS7HXzX5pyFr5l0c0iO2mkr5NeaQxuWaQHW3Bo 5qe+EHGW7OWUFccU192H6OchNJobgwJUbqTq5rHWU1YQOIyyEptxqTluU23s aEA59dY7kpImoXPM4NwLgZx0ya1oo34ml.+Dc.MwlV+jq47fb5KufmGbhLsZ xYUXC4mVM8ZZHNQmdIMncZZuw7RuHfNRI0L38vO.xSNm2. -----------end_max5_patcher-----------
What is wrong with the "dump" message to text? That is what I would use anyway. What you call freezing for the various solutions posted already, is what you ask for if you dump so many lines… (I bet there is some logic after your text object, which has to be calculated 12000 times as well, line after line…)
Thank you all for your responses, I will see what will the best solution for me
Forums > MaxMSP