COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

Trying to find SNR and THD for MP3 player

• Email
• Follow

```Hello everybody this is my first post, I thank everyone in advance for an
help.

I am trying to calculate the SNR and THD of an MP3 player that is playin
a 1KHz tone.

I am using a digitizer card (A to D) to capture 70000 samples at 700,00
Hertz. I then use the FFTW C library to find the DFT. To calculate the TH
I am using the following formula:

THD = SQRT(FFT[200]^2 + FFT[300]^2 + FFT[400]^2 + FFT[500]^2)/FFT[100]

My bin spacing is 10 hertz (samplerate divided by samplenumber), so inde
100 in the array corresponds to the 1000hertz signal and so on.

I then take the 20*Log10(THD) to get the value in dB.

For calculating the SNR I am finding the Root Sum Square of all the nois
bins by doing:

for(i=1; i<=2000; i++)
{
if(i!=100 && (i mod 100) != 0) //Find squared sum of all no
harmonics
Noise = Noise + FFT[i]^2;
y++;
}
Noise = SQRT(Noise);

Noise = Noise/y           //Should I be dividing to average?

SNR = FFT[100]/Noise;

SNR = 20*log10(SNR);

This is the psuedo code of what I'm doing, does this seem right?

Are these the correct methods to find THD and SNR? For the SNR calculatio
should I divide the summation by the total number of noise bins (variabl
y) added together in the for loop?

```
 0
Reply amit1947 (1) 8/18/2007 2:58:16 AM

See related articles to this posting

0 Replies
52 Views

Similar Articles

12/11/2013 10:59:29 AM
[PageSpeed]

Similar Artilces:

Player mp3
Hello, who can help me using a mp3 player Thomson Lyra pdp2424 whith linux (Mandrake 9.1) ? Thanks -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ On Fri, 25 Jul 2003 07:20:09 +0200, J�r�me MAZZOLA wrote: > Hello, > > who can help me using a mp3 player Thomson Lyra pdp2424 whith linux > (Mandrake 9.1) ? > > Thanks Go for the easy option - if it's got some sort of removable storage, get an external USB card reader and do things that way! Tim ...

MP3 player and scheduler?
Looking for MP3 player app that will also allow me to play them by the clock (ie, "play this MP3 at this time for x number of hours). Prefer shareware, but will consider commercial. Win-XP or 2000 preferred. Thanks, -- DaveC me@privacy.net This is an invalid return address Please reply in the news group New Special Report. http://www.onlinejournal.com/Special_Reports/052104Madsen/052104madsen.html Karl Rove's White House " Murder, Inc." By Wayne Madsen Online Journal Contributing Writer May , 2004- On September 15, 2001, just four days after the 9-11 attac...

MP3 Player Project
I am thinking of building a fully functional mp3 player with an FPGA. I will appreciate any help if your guys can give me any suggestion. I want the design to be as original as possible. For example: I prefer to implement mp3 decoding mechanism inside an FPGA by myself, rather than purchasing an off the shelf mp3 decoder. My preliminary spec is a simple mp3 player with an FPGA, USB memory stick, an LCD display, a keypad and whatever other external components necessary to build a complete system. 1. If I use USB memory stick, is it significantly more difficult than using IDE harddrive? 2. Where...

I am trying to find a word
Do you know when you want to find a name to call something, but can't think= of it, sometimes you go to a Thesaurus to offer suggestions. Well, in the= online video game word, there is a term called Nerfed, which means that th= ey dumbed down the game and made it too easy. Like playing with Nerf toys,= completely safe. Well I want a word for when a tech experience is totally= unsatisfactory in every way, you expect it to be one thing, but it is anot= her. You resign yourself to it being the other way, but doing it the other= way is also totally unsatisfactory. Any sugges...

Is Itunes compatible with any other MP3 Player?
Or do I have to burn it to a CD and then back to an MP3 player to getit to play in something that is not an Ipod? Will Itunes burn to a CD-RW so I don't have to waste so many CDs just to get the MP3? Thanks for any help. john_20_28_2000@yahoo.com wrote: > Or do I have to burn it to a CD and then back to an MP3 player to getit > to play in something that is not an Ipod? Will Itunes burn to a CD-RW > so I don't have to waste so many CDs just to get the MP3? Thanks > for any help. iTunes is simply a manager for audio files. Those files don't necessarily "belong&q...

Mac compatible mp3 player
Okay, here's what I want - flash based mp3 player for the mac. I have an iPod shuffle, but I'm finding the lack of a screen gets a bit annoying. I looked at the iPod Nano, but the 14 hours of battery life along with the scratch problems makes me hesitant. The store's display model is incredibly damaged. I also looked at the Sony Network Walkman (the cigarette lighter ones). They look pretty stylish and boast fifty (!) hours of battery life, but it doesn't look like they work for the Mac (I might be wrong though). So, does anyone have any recommendations? > I also looke...

Try to find smtp module for Activeperl
hi, greetings, I am current using Mail::SendEasy module under linux for my application. But I need to move this program to windows xp envrioment with ActivePerl. Can somebody tell me how to install these modules under Activeperl or is there any smtp and Pop3 modules that can be used under Activeperl? Thanks. "Paul" <paul.pettus@gmail.com> wrote in message news:1122089176.101187.11570@g43g2000cwa.googlegroups.com... > hi, greetings, > > I am current using Mail::SendEasy module under linux for my > application. But I need to move this program to windows xp envrio...

Problem with iRiver T30 MP3 player.
I was wondering if anybody could help me determine the cause of a read only problem with my iRiver T30. I have checked everything for a read only switch on the device, that I may have knocked on, but found nothing. The T30 mounts ok on Ubuntu Breezy Badger, but when I go to transfer files to it, an error message appears saying that I do not have permissions to write to the folder (/media/T30). Any help greatly apprieciated :) Flashes of Sky <mimi001@austarnet.com.au> wrote: > I was wondering if anybody could help me determine the cause of a read > only problem wit...

Ethernet enabled MP3 player kit
Anyone interested in a cheap dev. kit based around the AT89C51SND1 micro combined with a CS8900A Ethernet controller? Can be used in a general purpose embedded ethernet project if you don't need the music side of things! http://mp3oe.mine.nu/ ...

Sansa MP3 Player: Multiple Copies
Hardware: Sandisk Sansa m260 Software: 2.2.5A Hi; When I copy files over ( from a PC running Ubuntu 10.10 ) to my Sansa m260 each track is listed multiple times. When I look at the contents with my file explorer on my PC I see only one copy of each track. I tried deleting all files and starting over again on a fresh battery. No luck Any idea what this is about and what I can do about it? Thanks in advance Steve In article <5d8bc7d1-d39a-412e-a845-b0497a6634d6@i22g2000prd.googlegroups.com>, tinker123@gmail.com (Steve) writes: > Hardware: Sandisk Sansa m260 > Software...

Convert Windows Media Player file to MP3?
Downloaded a WMP audio file. Plays fine in WMP, but would like to downsize the file and let iTunes play it. Ideas? Thanks, -- DaveC me@privacy.net This is an invalid return address Please reply in the news group In article <0001HW.BCC98A8400073E61F03055B0@news.individual.net>, DaveC <me@privacy.net> wrote: > Downloaded a WMP audio file. Plays fine in WMP, but would like to downsize > the file and let iTunes play it. > > Ideas? > > Thanks, If it's not a protected file (as in, if you didn't buy it from one of the online music stores), iTunes 4...

Newbie
I'm a computer science student, and my structures of languages teacher asked us each to pick a language we'd never formally studied before, so I went with Prolog. I've been slowly working through both books listed as "Introduction" in the group's faq. Prolog Programming for AI is especially good, since the 'exercises' at the end of sections help a good deal. Now. Part of this assignment is the typical paper and report, but he also asked us to write a small, non-trivial (IE, no 'hello world') program. I've found plenty of sample code on the web...

Trying to find Tour De France font
I'm trying to find a font that looks similar to the "Vive Lance" shirts that came out during the Tour de France. Freeware would be best. Thanks1 In article <1125787509.212711.172130@g14g2000cwa.googlegroups.com>, javajez@yahoo.com wrote: > I'm trying to find a font that looks similar to the "Vive Lance" shirts > that came out during the Tour de France. Freeware would be best. > Thanks1 Could you provide some visual reference, like a link to a picture? That would help... Arthur -- Disclaimer: all advice is given on 'as is' basis a...

Behaviors ( 2nd try
We could put human-like behaviors in an AI, but it would be at the price of the independence, and scientific value, of the judgment of the machines. ( for example the Leader/Follower class of behaviors ) What are the behaviors you, personnally, have that you would like, or wouldn't like, to be included in an AI ? And for what reasons ? Pat ...

MP3 player for Wall Street & OS 9?
Looking for MP3 player for Wall Street and OS 9. Will an earlier version of iTunes work under 9? Other suggestions? Thanks, -- Dave C dave-usenet3016@mailblocks.com In article <0001HW.BB57A5BD00076C3FF0386600@news.individual.net>, DaveC <dave-usenet3016@mailblocks.com> wrote: > Looking for MP3 player for Wall Street and OS 9. I still use SoundJam MP on my Wallstreet. Works fine, and I hear that it has some features that haven't made it into iTunes yet. Latest version was 2.5.1. You might still be able to get a copy from Casady and Greene, or some of the end-ma...

Trying to find info that compares UltraSPARC III procs...
I just spend an hour on Sunsolves site and can't find anything remotly resembling what I am lookinf for... Does anyone know of a resource that will give me a run down on the differences between the following processors: 900 MHz UltraSPARC III (64 bit) 1050 MHz UltraSPARC III (64 bit) 1200 MHz UltraSPARC III (64 bit) We are exploring upgrade paths for our V880s, and I have no idea what the difference between say a 900 MHz and 105 MHz proc is, other than 150MHz, which seems like a drop in the bucket. Our Sun reseller is also looking into this but I get the feeling they are not having muc...

Cheap MP3 recorder/player + Mic? to record lectures?
Hi, My organization is considering making recordings of conferences/lectures that we do and one our people attend (Our main thing is disseminating information relating to aquaculture). I am trying to get them into it but since they barely have a concept of it they aren't willing to put much money into it yet. So. I am trying to track down an easy (I am the "techy-est" here, kidna sad), cheap recording solution which I thought would be something like a Mic and mp3 player/recorder (like some of iRiver's). But i wanted to get some input from people that knew what they were ta...

Pricing of Laptops, Mobile Phones, MP3 Players etc.
Find reviews, discussions and pricing at www.gadgets.pk of the following: - Notebooks and Pocket PC - Mobile Phones and Smart Phones - Desktop Computers and Servers - Computer Accessories - iPods and Accessories - MP3 Players - Digital Cameras - Printers and Scanners - Gaming Consoles - Networking Equipment - Home Automation - LCD Monitors - Plasma TV - Miscellaneous Items - Buy & Sell Items JOIN NOW IT'S FREE --------------------------------- WWW.GADGETS.PK --------------------------------- ...

Lloyd Parsons says: [the Zune] is an mp3 player. Nothing more or less.
<http://justanothermobilemonday.com/Wordpress/2009/09/17/developing-for-zune-hd/> "Step right up and grab your XNA Game Studio SDK - version 3.1 which adds the ability to develop for the Zune HD platform. You my friend, have the opportunity to create some really neat apps for Zune HD with the XNA framework with touch support as well as accelerometers. Yes, this is the exact development kit that's used to create XBox 360 games." <http://www.zune.net/en-US/products/zunehd/default.htm> "But it isn't in the same class as the iPad or any other iOS...

iTunes MP3 Burned CD Won't Work in Car Player
I recently installed a MP3 player in my truck. It plays regular CDs burned by iTunes just fine. However, it will not play a MP3 CD burned by iTunes - the car MP3 player reports an error. Reading various posts and googled articles, it appears that this is a common problem. However, the solution does not seem to be a common one. I tried one suggestion that iTunes does not use ID3 V1 tags (whatever those are), so I used a utility to populate the ID3 V1 tags - still doesn't work. Any other suggestions - other than buying Toast? Thanks, Keith In article <BC286F6C.5A723%kbechard@comcast....