find mono samples

For general discussion related FlowStone
Post Reply
philton
Posts: 25
Joined: Fri Nov 02, 2012 5:30 am

find mono samples

Post 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... :D
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: find mono samples

Post 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.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
philton
Posts: 25
Joined: Fri Nov 02, 2012 5:30 am

Re: find mono samples

Post 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. :D
philton
Posts: 25
Joined: Fri Nov 02, 2012 5:30 am

Re: find mono samples

Post 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! :D
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: find mono samples

Post 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 :mrgreen:
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
philton
Posts: 25
Joined: Fri Nov 02, 2012 5:30 am

Re: find mono samples

Post 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 :mrgreen:


jeah in win xp there was this option, but for some strange reason win7 don´t has it.
philton
Posts: 25
Joined: Fri Nov 02, 2012 5:30 am

Re: find mono samples

Post 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 :mrgreen:


jeah in win xp there was this option, but for some strange reason win7 don´t has it.
philton
Posts: 25
Joined: Fri Nov 02, 2012 5:30 am

Re: find mono samples

Post 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?
Post Reply