@dhk said:
Hello,
Since nobody answered the "[wavinfo] equivalent for aiff files?" question, I suppose the answer is "no".
yeah, that's what i guessed. i'm afraid to answer 'no' these days cos i'm really out of touch with how far pd development has come.
@dhk said:
If so: what do people here do to determine whether a soundfile (which could be aiff) is mono or stereo? In other words: what's the most efficient way of querying an array for non-zero? Are there any useful command for this, or do I have to iterate through the array?
well, not JUST that, but if you're planning on being able to re-load audio files into slots that have been used before, then you also have to send a [const 0( message at least to the right channel array, or otherwise it will still contain data from the previous file.
however, you've actually got another pd glitch on your side here. pd doesn't have a threaded soundfiler, so you're going to get a glitch when loading audio. this happens regardless of whether you just load one audio file, or whether you first zero your array, then load an audio file, and then iterate through the right channel to see if it's mono.
so, unless you're dealing with really huge audio files, or have a particularly slow processor, then it's probably not much harder just to do the iteration to check.
or, of course, you could do what i do, and just never use .aiff files in pd.