The following code imports this file into MATLAB and plots the power spectrum of the signal....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The following code imports this file into MATLAB and plots the power spectrum of the signal. clear all clear all variables ('Flute.nonvib.ff.C4.stereo.aif'); [x, Fs] =audioread a=length (x); al-pow2 (nextpow2 (a)); X=fft (x, al); f=(0:a1-1) * (Fs/al); power=abs(X).^2/a1; read the file calculate the length of the signal choose the next higher power of 2 take the fft of signal set the frequency variable range calculate the power of the signal plots the power plot (f (1: floor (a1/2)), power (1: floor (a1/2))) xlabel ('Frequency (Hz)'); % label the horizontal axis label the vertical axis ylabel ('Power'); title ('Power Spectrum Components for note C4'); % title the graph 4. (4) The musical note C4 corresponds to 261.63 Hz, how does the fundamental frequency from your graph compare to the actual frequency? What indication does this give you about the instrument - is it in-tune, slightly flat, very flat, slight sharp, or very sharp? The following code imports this file into MATLAB and plots the power spectrum of the signal. clear all clear all variables ('Flute.nonvib.ff.C4.stereo.aif'); [x, Fs] =audioread a=length (x); al-pow2 (nextpow2 (a)); X=fft (x, al); f=(0:a1-1) * (Fs/al); power=abs(X).^2/a1; read the file calculate the length of the signal choose the next higher power of 2 take the fft of signal set the frequency variable range calculate the power of the signal plots the power plot (f (1: floor (a1/2)), power (1: floor (a1/2))) xlabel ('Frequency (Hz)'); % label the horizontal axis label the vertical axis ylabel ('Power'); title ('Power Spectrum Components for note C4'); % title the graph 4. (4) The musical note C4 corresponds to 261.63 Hz, how does the fundamental frequency from your graph compare to the actual frequency? What indication does this give you about the instrument - is it in-tune, slightly flat, very flat, slight sharp, or very sharp?
Expert Answer:
Answer rating: 100% (QA)
I can guide you through the analysis 1 Identify the Fundamental Frequency Examine the power spectrum ... View the full answer
Related Book For
Digital Signal Processing
ISBN: ?978-0133737622
3rd Edition
Authors: Jonh G. Proakis, Dimitris G.Manolakis
Posted Date:
Students also viewed these electrical engineering questions
-
Plot the amplitude spectrum for the signal f2(t) 2 f t in Fig. 17.56(b). Consider the first five terms.
-
A smooth horizontal disc rotates about the vertical axis O (Fig. 4.15) with a constant angular velocity (o. A thin uniform rod AB of length l performs small oscillations about the vertical axis A...
-
A winch puller AB is used to straighten a fence post. Knowing that the tension in cable BC is 260 lb, length a is 8 in., length b is 35 in., and length d is 76 in., determine the moment about D of...
-
What is the first question to ask when redefining quality goals? What is the purpose of what I am trying to accomplish? What is the right purpose for me to be working on? What quality goals should I...
-
At Litchfield Chemical Corp. (LCC), a director of the company said that the use of dividend discount models by investors is proof that the higher the dividend, the higher the stock price. a. Using a...
-
What is a click-through rate, and how is it calculated?
-
In a test of homogeneity, the alternate hypothesis says that the distributions in the rows are the same. In Exercises 68, determine whether the statement is true or false. If the statement is false,...
-
You are a manager at Glass Inc.a mirror and window supplier. Recently, you conducted a study of the production process for your single- side encapsulated window. The results from the study are...
-
Paediatric Orthopaedic Clinic at the Children's Hospital of Western Ontario The chief of pediatric orthopedic surgery was very concerned by long times that young patients (and their parents) were...
-
Determine vo and the required PIV rating of each diode for the configuration of Fig. 2.168. 100 V Ideal diodes -100 V 2.2 k
-
litaireGame The list is originally: [78, 47, 73, 39, 39, 25, 41, 43, 52, 52, 59, 17, 86, 54, 95, 55, 44, 35, 3, 38, 60, 17, 50, 86, 49, 84, 67, 52, 30, 25, 90, 28, 32, 53, 94, 44, 19, 95, 91, 37]...
-
When selecting the physical route for the long-haul fiber-optic network, the fiber-optic cables were installed adjacent to what other type of infrastructure previously discussed as emerging during...
-
A company allocates overhead using a standard overhead rate of $4.80 per direct labor hour and 2 direct labor hours per unit. For this period, the company planned production of 10,140 units (80% of...
-
C&A Museum has 1,500,000 visitors per year. Each visitor spends an average of 2 hours in the museum. What is the average number of visitors in the museum on a given day if the museum is open 300 days...
-
3- Temperature distribution on the plate is modelled by the Laplace equation VT = 0. Boundary condition can be seen in the figure. Discretize the Laplace Equ. By using centered finite difference...
-
The following information concerns production in the Baking Department for August. All direct materials are placed in process at the beginning of production. ACCOUNT Work in Process-Baking Department...
-
Suppose a company had an initial investment of $45,000. The cash flow for the next five years are $12,000, $15,000, $14,000, $13,000, and $12,000, respectively. In which year will the company recover...
-
You continue to work in the corporate office for a nationwide convenience store franchise that operates nearly 10,000 stores. The per- store daily customer count (i.e., the mean number of customers...
-
Determine the mean and the autocorrelation of the sequence x(n). Which is the output of a ARMA (1, 1) process described by difference equation x(n) = x(n 1) + (n) (n 1) Where (n) is a white noise...
-
Consider the sampling of the bandpass signal whose spectrum is illustrated in figure. Determine the minimum sampling rate Fs to avoidaliasing. X(F) 94 100 106 - 106 - 100 -94
-
Compute the quantity for the following pairs ofsequences. 2x1(n)x2(n) 21 (a) x1 (n) = z(n) = cos n 0 sns N - 1 2 (b) x,(n) = cos -n 2 x2(n) = sin 0
-
Consider the following statements: Radius of friction circle for a journal bearing depends upon 1). coefficient of friction 2). radius of the journal 3). angular speed of rotation of the shaft Which...
-
Consider the following statements: 1). A stub tooth has a working depth larger than that of a full-depth tooth. 2). The path of contact for involute gears in an arc of a circle. Which of the...
-
Consider the following statements: Cam followers are generally classified according to 1). the nature of its motion 2). the nature of its surface in contact with the cam 3). the speed of the cam...
Study smarter with the SolutionInn App