CT2a_Lab1/Notes.m

18 lines
243 B
Matlab

close all
clear all
clc
fs = 2000;
Ts = 1/fs;
fi = [262;294;330;349;392;440;494;523];
f2 = [262;262;262;294;330;294;262];
G=[];
for i = 1:7
for t = i-1:Ts:i
note = sin(2*pi*fi(i,1)*t);
G=[G;note];
end
end
sound(G,fs)