Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the Design Recipe to define a function named num_perfect_sq that consumes one int parameter named max . Use a while loop which counts the

Use the Design Recipe to define a function named num_perfect_sq that consumes one int parameter named max. Use a while loop which counts the number of perfect squares less than or equal to max (not including 0). Return the count.

Python language !

image text in transcribed

For this assignment you will create an audio effects and analysis tool. Your program will need to have a Graphical User Interface (GUI) menu with the following functionality: Choose a File. This menu item will allow the user to enter exact name of audio file to be read into the program. The file has to be in.wav format. The audio vector and sampling frequency (Fs) from this module will be used for the remaining features of this program. 1. 2. Play the audio vector. Echo effect.Create a function that will add an echo effect to the audio signal. The function should take in the sound vector, sampling frequency, delay in seconds, and echo amplitude. The function should return a vector containing the echoed sound. 3. sounVecEchosoundEcho (soundVec, Fs, delay, echoGain) Steps you should follow when designing your function: a. Take in the audio vector and sampling frequency, delay and echo gain. b. Convert the delay in seconds to number of samples delaySamples- Fs * delay; Figure out a way to add a delayed version of the signal vector to the original sound vector. delaySamples tells you how many elements the offset needs to be c. d. Play the new version of your sound vector. Compress. Create a function that takes in the sound vector and compression ratio. The function should compress the file by removing vector elements based on the compression ratio. (ie. if you the compression ratio is 3, keep only every third element.) The function should return the compressed vector 4. compSoundVec -compress (soundvec, compression ratio)

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

Step: 3

blur-text-image

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

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

More Books

Students also viewed these Databases questions

Question

5. If yes, then why?

Answered: 1 week ago

Question

3. What changes should I be making?

Answered: 1 week ago