I am working on a live recording/looping patch, and I need to find the length of a WAV file, in samples. I am not using [soundfiler], due to inherent dropouts caused when switching WAV files..
I've tried [soundfile_info]...but it outputs a slightly incorrect calculation!!
I've also tried out [shell] with SOX, but SOX outputs its results to STDERR, rather than STDOUT. I've also tried adding '2>&1' to the SOX command, in order to reroute STDERR to STDOUT.
This works fine in my terminal, but when sent from PD I get this message:
"sox FAIL stat: Summary effect: unknown option"
So I am at a bit of a loss. Any recommendations? I am running OSX10.8.