Verify if buffer exists

elpepe's icon

Hi all!

I need to know if there's a way to check if a buffer exists before I try to use it, cause I don't like the annoying error on the max console: "no buffer~ example".

Thanks!

ElPepe.

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

I suppose you could check to see if info~ outputs anything before sending a 'set' message to play~ or whatever:

elpepe's icon

Yeah! that will do; I just need to use a gate.

I really forgot the magic of triggers... My bad!

Thanks Ben!