Author Topic: playing sounds with matlab  (Read 454 times)

Offline mathieulapointe

  • Newbie
  • *
  • Posts: 1
  • Matlab Forum
    • View Profile
playing sounds with matlab
« on: February 18, 2010, 06:15:50 AM »

hello here is a sample of a song played with matlab
 t1=1/10000:1/10000:0.5;
t2=1/10000:1/10000:0.25;
si=(sin(2*pi*246.94*t1));
ret2=sin(2*pi*293.66*t2);
sit2=sin(2*pi*246.94*t2);
fadt1=(sin(2*pi*369.99*t1));
solt1=(sin(2*pi*196*t1));
solupt1=(sin(2*pi*392*t1));
sound(si,10000)
sound(si,10000)
sound(si,10000)
sound(solt1,10000)
sound(ret2,10000)
sound(si,10000)
sound(solt1,10000)
sound(ret2,10000)
sound(si,10000)
sound(fadt1,10000)
sound(fadt1,10000)
sound(fadt1,10000)
sound(solupt1,10000)
sound(ret2,10000)
sound(si,10000)
sound(solt1,10000)
sound(ret2,10000)
sound(si,10000)
 
 
« Last Edit: April 22, 2010, 04:56:06 PM by Matlab »

Matlab Forum

« on: »

 

  Subject / Started by Replies Last post
matlab versions

Started by laila

0 Replies
901 Views
Last post May 30, 2008, 03:44:00 PM
by laila
matlab sound

Started by mehbo

0 Replies
370 Views
Last post March 27, 2009, 11:23:13 AM
by mehbo
0 Replies
541 Views
Last post November 09, 2009, 09:13:46 AM
by amirulkhairi
DSP in matlab

Started by amindzo

0 Replies
389 Views
Last post November 19, 2009, 09:43:11 AM
by amindzo
0 Replies
160 Views
Last post April 20, 2010, 07:26:43 PM
by impossible