many bangs generated as fast as possible

Okram28's icon

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.

Thank you

Elias's icon

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'

Okram28's icon

When I used uzi it looked like freezed for a while

Roman Thilenius's icon

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.

-110

Okram28's icon

Am sending from 12000 to 15000 bangs.

I need the numbers for lining the text object.

Thanks for your answers.

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

Does this do what you want?

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

Am afraid it does not. I have something like:

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.

Roman Thilenius's icon

and numbering textlines in [text] is so timecritcial that you can not [defer] it?

Okram28's icon

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.

Roman Thilenius's icon

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?

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

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.

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

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.

Tj Shredder's icon

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...)

Stefan

Okram28's icon

Thank you all for your responses, I will see what will the best solution for me

Okram28's icon

will be