The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: incorrect frequency sounds....
Replies: 4   Last Post: Mar 8, 2013 6:56 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 16
Registered: 2/20/13
incorrect frequency sounds....
Posted: Mar 8, 2013 8:24 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I've got the following code- designed to play a 512Hz (middle C) test tone
However the sound i'm getting out is very high pitch and doesn't relate to a 512Hz test tone. Any help/ideas? This has been confusing me alot


Fs= 1024;
t= 0:1/Fs:10;
x = cos(2*pi*512*t);

wavwrite(x, 'output')


this has been confusing me for a while.... I also have an FFT of the result which is correctly scaled that clearly shows energy at 512Hz.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.