Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

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

Assignment requirement -assignment reflective writing aims

Assignment Requirement - Assignment Reflective writing aims to get you to think about your learning and understand your learning experiences. When students writing Assignment 3 need to follow steps: 1. Evaluate the effec ...

Question note this is an individual assignment based on the

Question: Note: This is an individual assignment. Based on the feedback offered by the provider, identify the best approach for teaching. Prepare a presentation to accompany the teaching plan and present the information ...

Question not all ebp projects result in statistically

Question: Not all EBP projects result in statistically significant results. Define clinical significance, and explain the difference between clinical and statistical significance. How can you use clinical significance to ...

Question describe the history of the theorist who she is

Question: Describe the history of the theorist. Who s/he is? Where s/he comes from? Any significant life information about the theorist. Then describe the theory itself. What is the purpose of the theory? How was the the ...

Question no plagiarism pleasewill need minimum of 300 words

Question: No plagiarism please. Will need minimum of 300 words, APA Style, double spaced, times new roman, font 12, and Include: (3 references within years 2015-2018) with intext citations. This week's Discussion will fo ...

Question what is your idea of a healthy community provide

Question: What is your idea of a healthy community? Provide specific examples. What do healthy communities have in common? How would you provide care for a community if your idea of a healthy community does not match you ...

Essayplease write a three to four page double-spaced with

Essay Please write a three to four page, double-spaced (with one inch margins) essay on one of the following themes. Please use Times New Roman 12pt font, and do not include a separate title page. Instead, simply include ...

Essay instructionseach essay set assignment comprises a

ESSAY INSTRUCTIONS Each "essay set" assignment comprises a distinct situation and essay question(s) to prompt and to help student's think through and assess the knowledge gleaned from the textbook, videos and course read ...

Question discussion on the physical security topic in

Question: Discussion on the physical security topic. In theory, everything may look straight forward to do some research and find an article where physical security has failed. It can be a server room breach, it can be a ...

Question poverty has a strong influence on the lives of

Question: Poverty has a strong influence on the lives of adults. When an adult lives in poverty, the effects extend beyond that individual to all those who depend on the adult. The problem of poverty in the life of an ad ...

  • 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