Forums > MaxMSP

many bangs generated as fast as possible

July 25, 2010 | 11:18 am

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

July 25, 2010 | 11:26 am

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’

July 25, 2010 | 11:31 am

When I used uzi it looked like freezed for a while

July 25, 2010 | 11:41 am

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.


July 25, 2010 | 11:44 am

Am sending from 12000 to 15000 bangs.

I need the numbers for lining the text object.

Thanks for your answers.

July 25, 2010 | 1:33 pm

Does this do what you want?

— Pasted Max Patch, click to expand. —
July 25, 2010 | 1:47 pm

Am afraid it does not. I have something like:

— Pasted Max Patch, click to expand. —

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.

July 25, 2010 | 3:55 pm

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

July 25, 2010 | 4:19 pm

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.

July 25, 2010 | 5:59 pm

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?

July 25, 2010 | 6:15 pm

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. —
July 25, 2010 | 11:23 pm

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. —
— Pasted Max Patch, click to expand. —
August 4, 2010 | 5:50 am

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


August 8, 2010 | 1:18 pm

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

August 8, 2010 | 1:18 pm

will be

Viewing 15 posts - 1 through 15 (of 15 total)

Forums > MaxMSP