Simple question: from integer to bang?

aristizabal95's icon

So this is simple, I need an object where I input an integer number, lets say 3, and the object then outputs 3 bangs! It should be simple to make so I hope someone can answer me what object should I use.
Thanks

aristizabal95's icon

As an example I want an object that does the backwards process of the counter, thats all.

mzed's icon

You want Uzi.

Floating Point's icon

look at the select object ie [sel 3]
whoops didn't read your post properly; see next post:-]

Floating Point's icon

look at the uzi object ie [uzi 3]

aristizabal95's icon

Thanks for the help! Im trying to use this to make a program that automatically changes the value of an specified sample from a buffer. The idea is this. I specify the number of samples I want to change, ie "3" in this case, then the program will start counting from 1 to 3, and in each count will add lets say a value of 0.00354 to the sample, then saves the buffer. Im using peek~ to write the sample values into each sample, but im not sure if it is working. Maybe Im confusing you, since I dont speak english often. The problems are:
-Isn't uzi too fast for this kind of program?
-Is peek~ the right program to change a buffer's value?

I have just started using max, so my knowledge of what im doing is low, please any recomendations/corrections are appreciated.

I believe that's all. Thanks.

I would love to send you a simplified version of the program but I don't know how to pass it into text as I have seen here people often do.

Chris Muir's icon

As far as the buffer issue goes, uzi would probably work, but if you're playing audio, and want to change a lot of samples, it might take up to large a chunk of scheduler time.

I would probably use poke~ to stuff the values into buffer,

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

Thank you alot, poke~ doesn't work for my project since im not working with signals at all. Im using peek for that reason, to be able to extract values from a buffer without playing any audio. Here's a simplified version of my problem, since I can't post the original for personal reasons.

aristizabal95's icon

I'm not sure if the patch I just sent works or not, I made for you to have an easier visual explanation of my concept

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

Unless I'm not understanding your requirements, your scheme works. Here's your example with the sample writing made more obvious: