Checking Channels of Sound File
Hey all,
I've come up with this little system for switching between a double mono and stereo file, depending on what I happen to load. The idea is that as if nothing comes out of the second channel of groove, it will output double channel 1 (to the ezdac or whathaveyou) and if there is any signal from groove's 2nd channel then that will be output. Are there any better ways of doing this? Just want to double check my work with the community. Thanks in advance!
I have numerous stereo sound files with intermittent digital silence on the right channel. Playing them thru your patch would give strange results!
Why not simply using sfinfo~ or mxj buf.Op's getChannels to check wether you have a mono or stereo file?
p
Thought about this which uses more objects but has the advantage of not being level-dependant. Had the same remark as Patrick about files including digital silence. But I'm no expert...
`
Hey guys thanks for the quick response. sfinfo~ is just what I needed. I was sort of surprised that info~ doesn't have that information so I tried to come up with a work around but this is much better :)