Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Music()
- Fs=44100;
- T=1/Fs;
- M = zeros(1,88);
- for I=7:88,
- M(I) = round(36.8*(2^(1/12))^(I-6));
- end
- Signal=[];
- FrTm=[50 3;50,3;52,3;54,3;50,3;54,3;52,3;45,3;50,3;50,3;52,3;54,3;50,6;
- 49,3;1,3;50,3;50,3;52,3;54,3;55,3;54,3;52,3;50,3;49,3;45,3;47,3;49,3;50,6;
- 50,3;1,3;47,5;49,1;47,3;45,3;47,3;49,3;50,3;1,3;45,5;47,1;45,3;43,3;42,6;
- 45,3;1,3;47,5;49,1;47,3;45,3;47,3;49,3;50,3;47,3;45,3;50,3;49,3;52,3;50,6;
- 50,6];
- for i=1:length(FrTm),
- %---------------------------------------------------
- % complete the function
- end
- stem(Signal);
- sound (Signal, 44100);
- end
Add Comment
Please, Sign In to add comment