Você está na página 1de 1

notes = [1975.53 2217.46 1479.98 1760.00 0 1760.00 2637.02 2637.02 1975.53 1760.

00
2637.02 2637.02 1975.53 1760.00 1661.22 1760.00 1975.53 2217.46 1479.98 1760.00 0
1760.00 2637.02 2637.02 1975.53 1760.00 2637.02 2637.02 1975.53 1760.00 1661.22
1760.00];
notes3=[987.77 987.77 1108.73 1108.73 739.99 739.99 880.00 880.00 880.00 0 880.00
880.00 1318.51 1318.51 1318.51 987.77 987.77 987.77 880 880 1318.51 1318.51 1318.51
987.77 987.77 987.77 880 880 830.61 830.61 880 880];
fs=44100
t = 0.2*fs;
song = [];
for k = 1:length(notes3)
song =[song ; [sin(2*pi*[1:t]/fs*(notes3(k)))]'];
end
sound(song,fs)

Você também pode gostar