Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need to write a function that can create noise, and then add that noise to the sound signal in my matlab code below: %Creating

I need to write a function that can create noise, and then add that noise to the sound signal in my matlab code below:

image text in transcribed

%Creating 5 seconds of pleasant sound %Sampling frequency more than twice of the frequency fs- 2000; ?= [0:1/fs:5/15-1/ ; %5 seconds of peaceful music G-sin(2*pi*392*t): A-sin(2*pi*400*t); F-sin(2*pi*370*t); %Notes B-sin(2*pi*4939*t); C = sin(2*pi*261.6*t); %Notes line!-[G,G,A,G,F,A,A,B,A,G,B,B,C,BA]; % Piece of music combing the notes sng [line1]; sound(song f); %Sound the music %Normalizing the sound matrix to make in range of 16 bit precision max valuemax(abs song)); song = song,/max. xal; %Declaring the file name to save the audio filename- 'myAudioFile.wav; %Writing the audio to file"myAudioFile.way' audiowrite(filename, song, ts); %Readin, the audio file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

1-8. What is meant by the economic environment?

Answered: 1 week ago

Question

How would you rate Hsiehs leadership using the Leadership Grid?

Answered: 1 week ago