Yep. Actually, I would like [soundfiler] to give the option of outputting this info without actually loading the file into arrays (sometimes you need this info before you stream a random file from disk). Could be an option in readsf~, too, but if soundfiler already does it....

On Tue, Feb 21, 2017 at 6:01 AM, Ed Kelly via Pd-list <pd-list@lists.iem.at> wrote:
Apologies if this is a distraction.

The soundfiler object is clearly fundamental to digital music.
I think it needs a makeover. I'm willing to help, but it's been getting particularly difficult and I think, unnecessarily complicated to create patches that automatically load a folder of sound files which may be mono or stereo (or even quad?).
Since this information is contained within the header of each file (although it's a pain with the different formats), would it not be sensible to have a second outlet in soundfiler that delivers the number of channels, before the number of samples in the file is delivered from the left outlet? Perhaps also other info, but what would be relevant to a patch? I think channels is a necessary piece of information.

I prod you for a feature, and I probably have as many of these cattle prod moments hitting me from behind as I work on my patches.
Cheers,
Bisous,
Ed

 
_-_-_-_-_-_-_-^-_-_-_-_-_-_-_

For Lone Shark releases, Pure Data software and published Research, go to http://sharktracks.co.uk 

_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list