"Using the harmonic analyser to determine the musical note of sound input from a mic and soundcard"

"Hi there, I am currently trying to extract what musical note is being sung via a mic plugged into my soundcard and using the harmonic analyser VI, I am experiencing problems however, as the fundamental frequency output does not always match the note being sung. Does anyone have any ideas why this may be? I initally thought it may be due to aliasing occurring but this is compensated for in harmonic analyser VI! If anyone has any suggestions I would be extremley grateful. Thanks
Em"

[posted and mailed]
em wrote in news:5065000000050000009F680000-1012609683000
@exchange.ni.com:
> I'm pretty sure it would work fine with pure tones (although I do
> intend to test this), my problem really is how to fix it so that it
> can work with voices! One idea I thought about was to apply the
> A-weighting to the waveform to more accurately model the way a human
> would hear the sound, but I'm not sure how much difference this will
> make, any other suggestions would be very useful.
> Thanks
> Em
Rob Cole is right, your question is one that has a lot of potential
answers.
Here are a couple of notes / thoughts:
A-weighting probabably won't help much for your particular app, as it
sounds like your are more interested in tone detection, rather than
modeling how a human would hear or compliance with a standard.
Probably the most likely reason you are seeing the fundamental frequency
vary is that you are measuring a real-world signal that is a human voice.
Even though your singer may be singing a constant note, the frequency
content will vary somewhat--your singer is an imperfect boilogical
system. (Nothing against your singer in particular--no signer is
perfect!) Also, as Rob Cole pointed out, your singer's note isn't a pure
tone at all, but a collection of harmonics that you perceive as a note.
Regarding aliasing, it's important not to confuse any algorithmic
compensation (applied after a signal has been sampled) with true alias
protection. If you are using a sound card, it likely doesn't have
hardware-based alias protection. The only way to ensure that aliases
don't intrude on the frequency span of interest is to apply a hardware
filter prior to sampling your signal. Such filters can be added to the
front end of a DAQ board or come built-in with DSA hardware such as the
NI 4472. The software alias-related functionality of the Harmonic
Analyzer VI's simply excludes signal content that exceeds the Nyquist
rate in the distortion calculation.
I'm not sure specifically which VI you are referring to, but the SINAD
and Harmonic Distortion Analyzer VIs from the waveform analysis palette
use a tone detection algorithm to find the fundamental which is the same
as the one found in the Extract Single Tone Information VI. All of these
VIs include an advanced search input where you can specify a guess for
the frequency of interest and a range (as a percent of the sampling
frequency). You might try to narrow the search from the "try everything"
mode (-1 in the approx freq.) to something with less span around the
expected freq range.
Take a look at the power spectrum of your signal and verify that you see
a distinct, time-invarient peak where you expect your fundamental. My
guess is that you don't. I've whistled into a mic enough to know.
A final suggestion is to increase the duration (# of samples) acquired in
your acquisition. When you do so, you increase the duration of the signal
window that you analyze. If your signal shows slight frequency variation
over a given period of time, they can tend to average out with increased
duration of the signal that you analyze.
Hope this helps!
--Sam

Similar Messages

  • I used to be able to access my music when I was at my brothers house and I thought it was because of the cloud, it cost $24.95 ... I can't do it anymore...how do I sign up again, I forgot

    I used to be able to access my music when I was at my brothers house and I thought it was because of the cloud, it cost $24.95 ... I can't do it anymore...how do I sign up again, I forgot

    I believe you might be thinking of iTunes Match
    http://support.apple.com/kb/VI294

  • I need to populate the Document Currency in the COPA analysis. At the movem

    I need to populate the Document Currency in the COPA analysis. At the movement Overhead reporting is Profitability Analysis Cube in BW. Now they want to Include the document currency in the reporting and they want add the field document currency and currency key. Can any one tell how to create the Document currency in COPA Analysis please. Thank you

    Hi,
    CO-PA will only store values in either operating concern currency or company code currency (if active). The fields FRWAE and KURSF are just for the line item display in transaction KE24 when pressing 'entry/op currency'.  COPA does not store values in the document ccy.
    The 'foreign currency' in the PA line item always contains the currency that was used for the conversion, but does not contain the document currency of the original document. So only in case the document currency was used for the translation of the PA values the foreign currency will  be equal document currency.
    In case of SD documents, CO-PA always uses the document currency as base of the conversion in order to transfer values of statistic condition types consistently.
    In case of FI/MM documents system uses the company code ccy as the base for conversion into operating concern ccy (foreign ccy).
    regards
    Waman

  • I have moved from the US to Norway, and want to change my apple ID to the Norwegian appstore. However, I am not allowed ot change from the US store before I use up my balance, which is 0.17 dollar. The problem is that nothing costs 0.17 dollar.Please help

    I have moved from the US to Norway, and want to change my apple ID to the Norwegian appstore. However, I am not allowed ot change from the US store before I use up my balance, which is 0.17 dollar. The problem is that nothing costs 0.17 dollar and I do no longer have an american visa card, only Norwegian. Is there any way I can erase the credit on my account so I can change the appstore country? Or osmething I can use this credit on? Thank you very much

    Try contacting the store support staff at: http://www.apple.com/emea/support/itunes/contact.html they are usually pretty good at sorting out these issues.

  • I've installed Photoshop Elements 12 from a CD onto my PC laptop. I'm thinking about buying a tablet, so was wondering if (a) can I install on a 2nd device (b) can I use the serial number online as I won't beable to install from a CD, and (c) will I beabl

    I've installed Photoshop Elements 12 from a CD onto my PC laptop. I'm thinking about buying a tablet, so was wondering if (a) can I install on a 2nd device (b) can I use the serial number online as I won't beable to install from a CD, and (c) will I beable to choose a mac, after the initial was on a PC???? Thanks Martin

    A single user license allows for having activated installations on two machines. An Elements license allows for either platform in many cases (recently not the case from what I've seen).  If you have the disc, see if it contains the Mac installation files... if it does then you should be able to install them via a download as well.  I cannot answer with certainty for the last question since it relies on the previous question.  Personally, I would not let an inexpensive piece of software dictate an expensive hardware purchase decision.

  • I am trying to install SC6 Photoshop and Bridge on a new Mac laptop.  Though I have the software the laptop doesnot have a disk drive so I copied it from my desktop and transferred it via a portable hard drive.  I get a message:  Configuration error. Peas

    I am trying to install SC6 Photoshop and Bridge on a new Mac laptop.  Though I have the software the laptop doesnot have a disk drive so I copied it from my desktop and transferred it via a portable hard drive.  I get a message:  Configuration error. Please uninstall and reintall...   Error 16

    Hi midtone,
    Is it possible to download the product? It seems that copying didn't work.
    If you can download then please use this link: Download CS6 products
    -Ankit

  • Since upgrading to iOS 8.3 the maps apps on my ipad do not show current location from my gps

    Since upgrading to iOS 8.3 the maps apps on my ipad do not show current location from my gps DUALXGPS150A
    The data is still being received by the ipad but not appearing on any of the maps.
    Everything was working fine before the upgrade.

    Hi davidisleta,
    If you are having issues with your iPad not showing location information, you may want to try some things to troubleshoot.
    First, quit all running applications and test again -
    Force an app to close in iOS
    Next, I would try restarting and if needed resetting the iPhone -
    Restart or reset your iPhone, iPad, or iPod touch
    If the issue is still present, you may want to restore the iPhone as a new device -
    How to erase your iOS device and then set it up as a new device or restore it from backups
    Thanks for using Apple Support Communities.
    Best,
    Brett L  

  • Decided to update iphone 4 to ios 5.1 and mid update it froze and the screen is black.  Phone does not respond to any combinations of home and power buttons, when plugged into computer it does not see it is plugged in, any ideas?

    Decided to update iphone 4 to ios 5.1 and mid update it froze and the screen is black.  Phone does not respond to any combinations of home and power buttons, when plugged into computer it does not see it is plugged in so I cannot restore or anything.  Looks like the screen is on it's just unresponsive and black obviously.  Has anyone had this problem?  I was updating via wifi right in front of my router and my computer.

    Spoke to a "senior advisor" in the Apple TV department.  Her suggestions:  change channel in router to minimize/eliminate wifi interference from other users; move router away from any metal - i.e., DVD player, phone modem, etc.; keep router away from wireless 2.4 gH phones, which are "notorious" for crashing wifi routers.  So she confirms that the problem is one of connection to router suddenly dropping out.
    My own feeling is that none of these fixes will do the trick, because it seems pretty clear that there is a hardware component here - the timing of the drops seems like an overheating issue.  It takes 35-40 minutes for the box to warm up enough for the first drop; then each consecutive drop happens quicker than the one before, as it heats up more.  Each time it drops, its tiny brain gets a little more scrambled; last night it finally wouldn't start up again at all.
    My suggestion is that everyone who is experiencing this problem, please call Apple tech support and ask to speak to a senior advisor in the Apple TV department.  Make them aware of this problem!

  • I need to install iWork 09 so I can open the many pages document files that will NOT open under the new pages 5. Mavericks will not accept an install from my iWork's 09 CD. How do I get around this?

    I need to install iWork 09 so I can open the many pages document files that will NOT open under the new pages 5. Mavericks will not accept an install from my iWork's 09 CD. How do I get around this?

    Hi, I'm helping StringSinger2 with this problem.
    The previously installed version is Pages 3.0.3 (the same as from iWork 08). This version (Pages 3.0.3/iWork 08) is incompatible with Pages 5.
    That is why it would be helpful to install iWork 09, which is the version between the two. It will open the older 08 files, and its saved files are readable by the new Pages5.
    SO...
    When I try to install iWorks 09 from my retail DVD the error message is "the installer is damaged". (I know the dvd is good, I installed iWorks09 to my laptop today.) Is the "installer" part of the system files? And - If that is damaged is there a patch for that?
    Many Thanks!

  • The auxillary jack on my Itouch does not allow sound to come through with headphones, though it works in a dock as well as external speakers.  How can I fix this?

    The auxillary jack on my Itouch does not allow sound to come through with headphones, though it works in a dock as well as external speakers.  How can I fix this?

    You can try the standard fixes of reset, restore from backup and restore to factory defaults to rule out a hsoftware proble.  Frequently it is to to a problem with the eadphone jack and the solution is to replace the jack.

  • The Signal analysis functions of the DIAdem-CAL can not use.

    I use a DT3003 board for Data Acquisition in my system. My data is signal of Electromyography,and it needs the DIAdem-CALC "Signal Analysis" such as FFT.But these functions in my DIAdem are disable, Why?
    Attachments:
    10min.rar ‏194 KB

    Yes!
    We do need Frequency Analysis.The EMG is some kind of time-voltage signal.DIAdem do us great help in data sampling.We need to get information such as Average Amplitude, spectral parameters like Mean Power Frequency,Median Frequency from the raw EMG. Is "Signal Analysis" function of the DIAdem standar version able to full fill our demands?
    Re:Thanks for your advice again.Your helps are important for us.
    Cediland

  • HT204053 My wife and I have an iphone each using one apple id. How do we stop items being deleted from one phone and then find it has been deleted from the other?

    My wife and I have an iphone each using one apple id. How do we stop phone contacts being deleted from one phone and then find it has been deleted from the other?
    Also this works when one of us downloads an app it appears on the other iphone

    You need to use separate iCloud accounts. This will mean that you can both have your own separate contracts and calendars and put an end to them being deleted by each other.
    Whether or not you have a separate iTunes account, is up to you. If you have a separate iTunes accounts you will not be able to access the music, books, apps that have been purchased by the other. This may be exactly what you want, but it also means that you both may end up purchasing the same item.

  • I would be grateful if someone could direct me to the where I can find the solution to the problem of most of my music not being available to listen too and the message ''your music cannot be found as the original file could not be found''

    I have lost acess to most of my music in my itunes on my computer. I have a modern newish computer with windows 7 software and the latest version 11 Apple itunes software. Now all I get is amessage stating '' music cannot be found as original file cannot be found.'' I do not understand what I have to do to track down were the music is now filed as I understand that it somehow has been ''moved'' [how does this happen???] and itunes cannot find it.
    Thanks, I suspect this is a common problem but quite disturbing after many years of using itunes.

    Hi, spurrdoc.
    Thank you for the question.  The error that you are receiving usually indicates that the file or files are either missing completely from the computer or that the files are in a location that iTunes is set to read.  This is easily correctable if the media is on the computer.  The article below will help you locate your media. 
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/ts1408
    I have also included an article walks you through moving your iTunes media or directing iTunes to the media folder once located. 
    iTunes for Windows: Moving your iTunes Media folder
    http://support.apple.com/kb/ht1364
    Cheers,
    Jason H. 

  • What is the correct way to determine the install location of Acrobat/Reader to install plugins?

    We were previously using the following registry key to determine where we need to install our Acrobat/Reader plugin.
    HKEY_LOCAL_MACHINE\Software\Adobe\Adobe Acrobat\%d\InstallPath  
    HKEY_LOCAL_MACHINE\Software\Adobe\Acrobat Reader\%d\InstallPath  
    (and append \plugin_ins to that result)
    With Acrobat DC, I no longer see that registry key.
    I was planning on changing our code to instead look here to determine the install paths:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Acrobat.exe\Path
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe\Path
    Is this the recommended way of determining where to install plugins? I would rather not have our installation break when they update Acrobat/Reader the next time (for example maybe in the future they decide to change the executable name...)

    Enterprise Guide can be found at http://www.adobe.com/devnet-docs/acrobatetk/tools/AdminGuide/index.html   (came right up on a web search for me).  You want the information about product tracks and installer bit locations.
    SDK releases are usually within 30 days of the product release.

  • I cannot sync calendars from the iphone to the ipad but works the other way aroung.  Also music not syncing. Everything else seems to sync fine

    I am unable to sync my calendars from the iphone 4S to the ipad but the calendars do sync from the ipad to the phone.  Music also does not sync either way.  Everything else seems to be OK.  Anyone have this problem?

    Welcome to the Apple Community.
    First check that all your settings are correct, that calendar syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the calendars you are using are in your 'iCloud' account and not an 'On My Mac', 'On My Phone' or other non iCloud account (you can do this by clicking/tapping the calendar button in the top left corner of the application ), non iCloud calendars will not sync.
    If you are sure that everything is set up correctly and your calendars are in the iCloud account, you might try unchecking calendar syncing in the iCloud settings, restarting your device and then re-enabling calendar syncing settings.
    With regard to your music, what exactly are you expecting to happen.

Maybe you are looking for

  • How the **** do i actually get from lion 10.7.5 to mountain lion

    for the love of all holy please tell me i have the following Software  Mac OS X Lion 10.7.5 (11G63) it wont update because there is nothing more i tried to go  to mountain lion and has been a massive pain in my neck--- it says you can but you cant do

  • (Urgent) - Using Image as a link

    Hi All, I have a requirement to use image as a hyper link so that when a user clicks on that image he can see the report related to it. Could this Feature is possible through ABAP. If yes how can i achieve it, is there any FM with the use of which i

  • My ipod is like froze with the itunes bluew circle and there a bunch of otherstuff to do~~~

    my ipod is like frozen  it has the ipod circle on it and the white cord that charges it on the screen wont sync restore or when its shut off it dont matter

  • Message from Page procedure

    Hi All, I am calling multiple procedures on Submit button(Page processing) and on the basis of the data passed to procedures getting error/success messages as out parameter. I need to display these error messages on the page. How could I do this? Tha

  • Field and tables hide

    i am doing  msc2n tcode. processorder type:  unrestricted type and restricted type fields not showing. after few days my techincal person do some work. after few days i was got a table and feilds. what is the solution. regards satish