Physics
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?

answer
Answers: 1

Other questions on the subject: Physics

image
Physics, 22.06.2019 06:30, nathangirnet
What is the energy of a photon of ultraviolet radiation with a frequency of 4.4 Γ— 1015 hz? planck’s constant is 6.63 Γ— 10–34
Answers: 3
image
Physics, 22.06.2019 07:40, bellapimienta8
Which best describes how fluids change as they travel through different portions of the convection currents? they change to solids at the outer portion of the convection currents. they change to solids at the inner portion of the convection currents. they become more dense at the outer portion of the convection currents. they become more dense at the inner portion of the convection currents
Answers: 2
image
Physics, 22.06.2019 09:00, nedannn
An open cart is moving along a straight frictionless horizontal track. when rain starts falling vertically into the cart, what happens to the speed of the cart?
Answers: 3
image
Physics, 22.06.2019 19:00, sanchez626
Friction removes energy from objects in motion. which statement best describes how this works? a) friction transforms ke into thermal energy b) friction transfers thermal energy to ke c) friction transforms te into pe d) friction transforms pe into ke e) friction transfers ke into pe
Answers: 1
Do you know the correct answer?
Concatenation two arrays means chaining them together. for sound, this means putting signals togethe...

Questions in other subjects:

Konu
Biology, 09.04.2021 19:00
Konu
Biology, 09.04.2021 19:00
Konu
Mathematics, 09.04.2021 19:00