Membuat Ringtone Dengan Matlab (Fur Elise – beethoven)


Buat yang mempelajari pembangkitan sinyal menggunakan Matlab, nih aq udah buat ringtone Fur Elise (Beethoven) untuk tugas Komunikasi Data,

caranya buat project baru > copi paste😀 > trus tekan f5

(Opensource n bisa di edit,di publikasikan,digandakan dll Credit By : harisbudi)

fs=8000; % frekuensi sampling 8kHz
t=0:1/fs:0.20; % panjang not ¼ detik
t1=0:1/fs:0.15;
t2=0:1/fs:0.25;
t3=0:1/fs:0.125;

c0=sin(1*pi*260*t); % nada c
c1=sin(2*pi*260*t);
c2=sin(4*pi*260*t);
c3=sin(8*pi*260*t);
c4=sin(16*pi*260*t);

d0=sin(1*pi*300*t); % nada d
d1=sin(2*pi*300*t);
d3=sin(4*pi*300*t);
d4=sin(8*pi*300*t);

e0=sin(1*pi*330*t); % nada e
e1=sin(2*pi*330*t);
e2=sin(4*pi*330*t);
e3=sin(8*pi*330*t);
e4=sin(16*pi*330*t)

f0=sin(1*pi*350*t); % nada f
f1=sin(2*pi*350*t);
f2=sin(4*pi*350*t);
f3=sin(8*pi*350*t);
f4=sin(16*pi*350*t);

g0=sin(1*pi*390*t); % nada g
g0c=sin(1*pi*420*t);
g1=sin(2*pi*390*t);
g1c=sin(2*pi*420*t);
g2=sin(3*pi*515*t);
g3=sin(4*pi*390*t);
g4=sin(5*pi*390*t);

a0=sin(1*pi*440*t); % nada a
a1=sin(2*pi*440*t);
a2=sin(3*pi*580*t);
a3=sin(4*pi*440*t);
a4=sin(5*pi*440*t);

b0=sin(1*pi*495*t); % nada b
b1=sin(2*pi*495*t);
b2=sin(3*pi*645*t);
b3=sin(4*pi*495*t);
b4=sin(5*pi*495*t);

d2c=sin(3*pi*410*t);
a2c=sin(4*pi*0*t);
d2=sin(3*pi*390*t);
nol=zeros(size(t)); % spasi kosong
fur=[e2,d2c,e2,d2c,e2,b1,d2,c2,a1,nol,a0,c1,e1,a1,b1,nol,g0c,e1,g1c,b1,c2,nol,a0,e1,…
e2,d2c,e2,d2c,e2,b1,d2,c2,a1,nol,a0,c1,e1,a1,b1,nol,g0c,e1,c2,b1,a1,nol,e1,…
e2,d2c,e2,d2c,e2,b1,d2,c2,a1,nol,a0,c1,e1,a1,b1,nol,g0c,e1,g1c,b1,c2,nol,a0,e1,…
e2,d2c,e2,d2c,e2,b1,d2,c2,a1,nol,a0,c1,e1,a1,b1,nol,g0c,e1,c2,b1,a1,nol,nol,…
b1,c2,d2,e2,nol,e1,g1,f2,e2,d2,nol,d1,f1,e2,d2,c2,nol,c1,e1,d2,c2,b1,nol,nol,e1,e1,e2,e1,e2,e2,e3,…
e2,d2c,e2,d2c,…
e2,d2c,e2,d2c,e2,b1,d2,c2,a1,nol,a0,c1,e1,a1,b1,nol,g0c,e1,g1c,b1,c2,nol,a0,e1,…
e2,d2c,e2,d2c,e2,b1,d2,c2,a1,nol,a0,c1,e1,a1,b1,nol,g0c,e1,g1c,b1,c2,nol,a0,e1,…
e2,d2c,e2,d2c,e2,b1,d2,c2,a1,nol,a0,c1,e1,a1,b1,nol,g0c,e1,c2,b1,a1,nol,nol,…
b1,c2,d2,e2,nol,e1,g1,f2,e2,d2,nol,d1,f1,e2,d2,c2,nol,c1,e1,d2,c2,b1,nol,nol,e1,e1,e2,e1,e2,e2,e3,…
e2,d2c,e2,d2c,…
e2,d2c,e2,d2c,e2,b1,d2,c2,a1,a1,a1,a1
];

sound(fur,fs); % mainkan pada fs 8kHz
wavwrite(fur,’d:\fur_elis.wav’); % simpan ke file WAV

One thought on “Membuat Ringtone Dengan Matlab (Fur Elise – beethoven)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s