Ask Homework Help/Study Tips Expert

Introduction to Signal Analysis Lab: AM & FM Signals

The objective of this lab is to generate samples of frequency modulated sound signals that mimic musical instruments such as bell. We will study the effect of modulation by listening to the signal converted to audio via the MATLAB command sound. This set of instructions is adapted from your textbook (DSP First - A Multimedia Approach), Section C.4.4.

I. Generating the Bell Envelopes

1. Write a function named bell_env that generates the bell's amplitude envelope, A(t), and modulation index envelope, I(t), which are both decaying exponentials given by the following equations:

A(t) = A0e-t/τ

I(t) = I0e-t/τ

The function should have the following input and output parameters:

Inputs:

  • A0: scale factor for amplitude envelope (real and positive)
  • I0: scale factor for modulation index (real and positive)
  • tau: time constant (real and positive)
  • dur: duration of the envelope (real and positive)
  • fsamp: sampling rate (integer and positive)

Outputs:

  • t: time vector ranging from 0 to dur with the sampling rate of fsamp
  • At: vector containing samples of the amplitude envelope
  • It: vector containing samples of the modulation index envelope

2. An error message should be generated if any of the inputs does not meet the specified conditions.

3. The function should define the time vector based on fsamp and dur in the first step, and use it in the second step to generate the decaying exponentials.

II. Parameters for the Bell

1. Write a function named bell that creates the actual sound signal for the bell by specifying the parameters in the FM synthesis formula given below:

X(t) = A(t) cos(2πfct + I(t) cos(2πfmt - π/2) - π/2)

The function should have the following input and output parameters:

Inputs:

  • ff: frequency vector containing fc and fm (1 × 2 matrix with real elements)
  • A0: scale factor for amplitude envelope (real and positive)
  • I0: scale factor for modulation index (real and positive)
  • tau: time constant (real and positive)
  • dur: duration of the envelope (real and positive)
  • fsamp: sampling rate (integer and positive)

Output:

  • X: vector containing samples of the bell signal

2. An error message should be generated if any of the inputs does not meet the specified conditions.

3. The first and second elements of the input vector ff should be stored in variables named fc and fm respectively.

4. In order to calculate the time vector, t, as well as the bell envelopes, At and  It,  the function bell_env should be called with input arguments A0, I0, tau, dur, and fsamp.

5. The bell function should use the FM synthesis formula to generate samples of the bell signal and store them in the output variable,  X.

6. The function should convert the bell signal to sound using the MATLAB function sound. It should also compute and plot the spectrogram of the bell signal using the MATLAB function spectrogram with the following syntax:

win=2048; noverlap=1024;           nfft=2048;

spectrogram(X , win, noverlap, nfft , fsamp)

7. The function should plot about 300 samples from the middle of the signal in a second figure window with proper axis labels and  title.

8. Call the function in the command window for the following input sets:

CASE

fc(Hz)

fm(Hz)

A0

I0

τ(sec)

Tdur(sec)

fsamp(Hz)

1

110

220

1

10

2

6

11025

2

110

220

1

10

12

3

11025

3

110

220

1

10

0.3

3

11025

4

220

440

1

5

2

6

11025

5

250

350

1

5

2

5

11025

6

250

350

1

3

1

5

11025

Listen to the signal. What comments can you make regarding the sound quality? Describe how the frequency content changes, and how that change is related to I0, τ, and Tdur.

Questions

1. Try to find a closed form expression for the instantaneous frequency of the bell signal, fi(t). The equation for the bell signal is provided in part II. What is the frequency of the signal at t = 0?

2. Try to find the fundamental frequency of the bell sound signal, denoted by f0, from the second plot generated for each input set in part II (Hint: find the fundamental period from the plot and invert it to obtain the fundamental frequency).  Try to verify if the value you obtained for fundamental frequency is correct by listening to the sound. What is the relationship between f0 and the input frequencies, fc and fm? Is the lowest frequency component in the spectrogram of the sound signal always equal to the fundamental frequency? Provide a brief discussion of your results in each one of the above six cases.

3. Try to express the harmonic pattern of the bell signal in terms of the fundamental frequency, f0, carrier frequency, fc, and modulating frequency, fm (Hint: consider at least 7 frequency components in the spectrogram of each input set and study their relationship). Feel free to test your function with other combinations of fc and fm.

Attachment:- Project Report Format.rar

Homework Help/Study Tips, Others

  • Category:- Homework Help/Study Tips
  • Reference No.:- M92016448

Have any Question?


Related Questions in Homework Help/Study Tips

Review the website airmail service from the smithsonian

Review the website Airmail Service from the Smithsonian National Postal Museum that is dedicated to the history of the U.S. Air Mail Service. Go to the Airmail in America link and explore the additional tabs along the le ...

Read the article frank whittle and the race for the jet

Read the article Frank Whittle and the Race for the Jet from "Historynet" describing the historical influences of Sir Frank Whittle and his early work contributions to jet engine technologies. Prepare a presentation high ...

Overviewnow that we have had an introduction to the context

Overview Now that we have had an introduction to the context of Jesus' life and an overview of the Biblical gospels, we are now ready to take a look at the earliest gospel written about Jesus - the Gospel of Mark. In thi ...

Fitness projectstudents will design and implement a six

Fitness Project Students will design and implement a six week long fitness program for a family member, friend or co-worker. The fitness program will be based on concepts discussed in class. Students will provide justifi ...

Read grand canyon collision - the greatest commercial air

Read Grand Canyon Collision - The greatest commercial air tragedy of its day! from doney, which details the circumstances surrounding one of the most prolific aircraft accidents of all time-the June 1956 mid-air collisio ...

Qestion anti-trustprior to completing the assignment

Question: Anti-Trust Prior to completing the assignment, review Chapter 4 of your course text. You are a manager with 5 years of experience and need to write a report for senior management on how your firm can avoid the ...

Question how has the patient and affordable care act of

Question: How has the Patient and Affordable Care Act of 2010 (the "Health Care Reform Act") reshaped financial arrangements between hospitals, physicians, and other providers with Medicare making a single payment for al ...

Plate tectonicsthe learning objectives for chapter 2 and

Plate Tectonics The Learning Objectives for Chapter 2 and this web quest is to learn about and become familiar with: Plate Boundary Types Plate Boundary Interactions Plate Tectonic Map of the World Past Plate Movement an ...

Question critical case for billing amp codingcomplete the

Question: Critical Case for Billing & Coding Complete the Critical Case for Billing & Coding simulation within the LearnScape platform. You will need to create a single Microsoft Word file and save it to your computer. A ...

Review the cba provided in the resources section between

Review the CBA provided in the resources section between the Trustees of Columbia University and Local 2110 International Union of Technical, Office, and Professional Workers. Describe how this is similar to a "contract" ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As