Hi,
1)Starting from a pure wave of a given frequency (4000 Hz) I can not implement this pseudo code to play a sound (pure wave) whose frequency decreases continuously from 4000 to 200:
demo matlab
t = (0:0.001:100)';
for n = 4000:-1:200
y = sin(2*pi*n*t)
sound(y,Fs);
end
How to implement this correctly?
2)same question but starting from an very short audio file or an sound sample
thanks
3 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/421425-how-to-play-a-variation-of-frequency#comment_615965
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/421425-how-to-play-a-variation-of-frequency#comment_615965
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/421425-how-to-play-a-variation-of-frequency#comment_616798
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/421425-how-to-play-a-variation-of-frequency#comment_616798
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/421425-how-to-play-a-variation-of-frequency#comment_617034
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/421425-how-to-play-a-variation-of-frequency#comment_617034
Sign in to comment.