Page 1 of 1
find mono samples
Posted: Fri Aug 16, 2013 9:29 pm
by philton
hey guys
i have converted a lot of my collected stereo samples to mono WAV files. but my folder structure and file naming is horrible. now i wanted to collect ALL the mono WAV files inside my sample folder. so here is my question:
does somebody know a way / application that can detect all mono WAV files inside a folder? i have tried to make my own application using SM but the only way to detect if a WAV file is mono or stereo is to load the wavs into memory which is not a good way when dealing with lets say 200 WAV samples (only short samples, max. 1 mb). so to say it short :
i just need a way how i can detect mono OR stereo for a whole folder of WAV files...any help?
i would love to make my own app for doing this, i allready started with a simple schematic in SM (just a file scanner that
saves the filenames including the number of channels all in one text file inside the folder) but maybe some magical RUBY code would do the same but more efficient...

Re: find mono samples
Posted: Fri Aug 16, 2013 9:57 pm
by tester
As far I remember even the Windows itself (at least XP) can detect mono waves. Switch explorer/window view to details and select proper columns from the context menu (number of channels? don't know how it's in english version). Then - sort, and follow what you need according to view.
Re: find mono samples
Posted: Fri Aug 16, 2013 10:20 pm
by philton
tester wrote:As far I remember even the Windows itself (at least XP) can detect mono waves. Switch explorer/window view to details and select proper columns from the context menu (number of channels? don't know how it's in english version). Then - sort, and follow what you need according to view.
thx tester, that´s a way i never thought of.

Re: find mono samples
Posted: Fri Aug 16, 2013 10:37 pm
by philton
i just found out that in win7 there is no more option to view number of channels directly, but as workaround you can select "bitrate" from the details columns and convert theese values using this :
512kbps = 32kHz 16 bit Mono
705kbps = 44kHz 16 bit Mono
1024kbps = 32kHz 16 bit Stereo
1058kbps = 44kHz 24bit Mono
1152kbps = 48kHz 24 bit Mono
1411kbps = 44kHz 16 bit Stereo
2116kbps = 44kHz 24bit Stereo
2304kbps = 48kHz 24 bit Stereo
to avoid that i have to do that manually for every subfolder , i just entered my sample folder and typed
"*.wav" in the upper right corner of the folder (the search window). windows will now list all WAV files and i can easily sort them.
thanx again tester!

Re: find mono samples
Posted: Fri Aug 16, 2013 10:56 pm
by tester
Hmm... strange... in my XP there is a column labeled "channels", and it shows it. Maybe some other app added it. But I do often as you describe. Just search for all *.wav files, and sort them, and then select these of my interest. Bitrate approach is fine if you have uncompressed files only. But anyway - good that it worked for you

Re: find mono samples
Posted: Fri Aug 16, 2013 11:17 pm
by philton
tester wrote:Hmm... strange... in my XP there is a column labeled "channels", and it shows it. Maybe some other app added it. But I do often as you describe. Just search for all *.wav files, and sort them, and then select these of my interest. Bitrate approach is fine if you have uncompressed files only. But anyway - good that it worked for you

jeah in win xp there was this option, but for some strange reason win7 don´t has it.
Re: find mono samples
Posted: Fri Aug 16, 2013 11:21 pm
by philton
tester wrote:Hmm... strange... in my XP there is a column labeled "channels", and it shows it. Maybe some other app added it. But I do often as you describe. Just search for all *.wav files, and sort them, and then select these of my interest. Bitrate approach is fine if you have uncompressed files only. But anyway - good that it worked for you

jeah in win xp there was this option, but for some strange reason win7 don´t has it.
Re: find mono samples
Posted: Sat Aug 17, 2013 2:25 am
by philton
okay then i have another question: is it possible to access/read the values in the explorer detail view (for example bitrate or lenth) via ruby?