How to detect when .wav can't be loaded?
This is a pretty simple concept: can I get some kind of signal or flag in a patch when a .wav file is unable to load?
There are many formats of .wav files that Max isn't able to open, and in my automated patches there is no way for the system to know if a file failed to load into an sfplay~ or buffer~ object. An error message comes up in the Max window, but I can't figure out how to use that information inside the patcher to tell it to try a different file.
Am I missing something obvious?
There is a way to detect errors in the max window...I forget now, but someone is sure to know.
Look at the [error] object help file.
lh
thereishopeforus@hotmail.com wrote on Wed, 01 July 2009 03:55Look at the [error] object help file.
lh
Thanks, that is working!
The help file doesn't behave how it says it will, but it's definitely giving me text from the Max window that I can parse.