Talk About Network

Google





Mac > Mac Programmer Tools > manipulating .R...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 7 Topic 626 of 637
Post > Topic >>

manipulating .RAW data, or .WAV files

by Beta Zero <beta_zero@[EMAIL PROTECTED] > May 8, 2008 at 09:42 PM

>> For example, let's say I have a large number of .WAV files in the 
>> harddrive I'm looking at, is there any easy way for me to extract the 
>> major frequencies from them, assuming I also specify an estimated 
>> sample rate, a particular playback rate, and the depths into the file
>> I am examining?  (This would be the first step toward creating 
>> sound envelopes for them.  I think.)
>> 
>> Or has somebody already done that, and it's already available as a 'C' 
>> program?

Tom Harrington <tph@[EMAIL PROTECTED]
> wrote:
>Err, sure it's possible.

It's not that hard for the Atari ST, just time consuming, and I have
other things to do with my life.  But now that I have a Mac 'mini,'
there has GOT to be SOME way of ****ting it over to the Mac.  And it is
bound to work a whole lot faster.  Maybe there is a 68k emulator out
there somewhere, and the i/o is mapped into the addressing space in a
rational, well-do***ented way?

>I would expect this task to be a decidedly non-trivial one, but that 
>doesn't mean it's impossible or that it hasn't been done.  If you're 
>just starting to learn to write software, you'll need to learn to 
>crawl and walk before you can run with a complex project.

Hey, I'm a 68000 assembly language programmer, not a 'C' programmer; 
there are fewer instructions and addressing modes for the 68k.

To elucidate the matter a little more, let's suppose I have 100 megs of
null bytes in a .RAW or .WAV file.  (I am assuming that .RAW and .WAV
files similarly contain series of 32 bit long words.)  If that's the 
case, it really doesn't matter what the sample rate is, or what the 
playback rate is, you are still going to get a series of zero 
frequencies, whether the file was examined in a forward direction, or a 
backward direction.  Of course, that's a trivial situation.  On the 
other hand, if your 100 meg file is full of a whole bunch of $ffffffff 
long words, you are (I would expect) going to be returning a series 
of the highest frequencies that are possible.  You might even want to 
flag an overflow situation.  But if you are dealing with some raw data 
sampled from a musical performance - say, a cello and an oboe, the 
bytes are going to be anything but well-ordered; the frequencies 
returned will depend a lot on what you might specify for a sample rate, 
and a playback rate.

I was just hoping someone had already concocted a command along those 
lines for the Darwin 'terminal' for the Mac...
 




 7 Posts in Topic:
adding commands to Unix (um, modifying Darwin?)
Beta Zero <beta_zero@[  2008-05-08 13:25:24 
Re: adding commands to Unix (um, modifying Darwin?)
Tom Harrington <tph@[E  2008-05-08 15:41:33 
Re: adding commands to Unix (um, modifying Darwin?)
David Phillip Oster <o  2008-05-08 20:18:36 
Re: adding commands to Unix (um, modifying Darwin?)
Sherman Pendley <spamt  2008-05-09 00:34:01 
manipulating .RAW data, or .WAV files
Beta Zero <beta_zero@[  2008-05-08 21:42:29 
Re: manipulating .RAW data, or .WAV files
David Phillip Oster <o  2008-05-09 07:36:59 
Re: adding commands to Unix (um, modifying Darwin?)
Beta Zero <beta_zero@[  2008-05-09 12:55:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 22:44:56 PST 2009.