subject
Physics, 14.09.2019 09:30 angiepuma43

Concatenation two arrays means chaining them together. for sound, this means putting signals together to hear them one at a time. in matlab, two vectors can be concatenated through the notation:
zz = [xx, yy];
run a script or function for each example for your lab doc.
1. run soundsc() on an input signal/sinusoid. using = 11025 , instantiate a time vector of 0.5 second duration. create a vector x1 of samples of a sinusoid with amplitude = 100, angular frequency = ), and phase phi = − 3 . play the vector and listen to the output. note: if soundsc() does not work for you, in this case use audiowrite() (run audiowrite) to create a .wav file. the .wav file can be played by most media players.
2. run soundsc() on a second input signal/sinusoid: create a vector x2 of samples of a sinusoid with = 80, = ), and phi = 4 . use = 11025 and obtain a number of samples equivalent to a 0.8 second duration. play the vector and listen to the output.
3. concatenate the input signals together: concatenate x1 and x2 into a vector x, leaving a duration of 0.1 seconds of silence in between.
hint: use
listen to this new signal to verify that it is correct.
4. plot and identify the two input signals. execute the following commands, and plot: > > tt = (1/11025)*(1: length(xx)); > > plot(tt, xx); this will plot a huge number of points, but you should be able to discern the "envelope" of the signal. verify that the amplitude changes from 100 to 0, and then from 0 to 100 at the correct times.
5. different sampling frequencies affecting pitch: call soundsc() on x again (or use audiowrite() and play the output file), but this time use = 22050 .
describe how the duration and pitch of the signal were affected and explain.
6. using the t vector from section 2.1.4 of this lab, create sounds for the following frequencies:
[523, 587, 659, 698, 784, 880, 988, 1047]
concatenate the sounds together, and *submit the concatenated sound (a musical scale) as a single .wav file using audiowrite. remember to include code and .wav file.
question 11: how does this sound compare to the output of the previous sound?

ansver
Answers: 1

Other questions on the subject: Physics

image
Physics, 22.06.2019 00:20, nini261
2.22/3.33 points | previous answers tamucolphysmechl1 4.pre.002. ask your teacher my notes question part points submissions used on a frictionless air track, a blue glider with mass 0.200 kg is moving to the right with a speed of 8.00 m/s. it strikes a red glider that has mass 0.600 kg and that is initially at rest. after the collision, the blue glider is moving to the left with a speed of 2.40 m/s. (a) what are the magnitude and direction of the velocity of the red glider after the collision? magnitude 3.33 m/s correct: your answer is correct. direction correct: your answer is correct. (b) is this collision elastic?
Answers: 1
image
Physics, 22.06.2019 01:20, Kjcampbell2
Your target variable is δf, the magnitude of the difference in frequency between the waves emitted from the sonar device and the waves received by the device after reflecting off the whale. write an expression for δf in terms of the relevant frequencies using the subscript notation introduced above.
Answers: 3
image
Physics, 22.06.2019 06:30, kalialee2424
From 0 to 5 seconds john pushed a box 5 meters. from 5 to 10 seconds, paul pushed the same box another 5 meters. who did more work? a. john b. paul c. john and paul did the same amount of work.
Answers: 1
image
Physics, 22.06.2019 16:00, alecnewman2002
The energy produced as a result of this flow of electrons from atom to atom is called
Answers: 3
You know the right answer?
Concatenation two arrays means chaining them together. for sound, this means putting signals togethe...

Questions in other subjects:

Konu
Mathematics, 08.11.2020 23:10
Konu
Mathematics, 08.11.2020 23:10
Konu
Physics, 08.11.2020 23:10