Audio Processing, Music Note Generation

Status
Not open for further replies.

tobby

Junior Member level 1
Joined
Nov 28, 2005
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,408
is there anyone who knows how to generate a C note (or any notes fromm Ab to G#, espcially, a guitar like C note..) in MatLab?
THX!
 

if you know frequency of a note u can
make it in MATLAB by this :
y= cos(2*pi*f*(0:N-1)/fs);
that f is note frequency and fs is sampling frequency(fs>2*f) and N is length of signal

after these u can sent it to sound device by:
sound(y,fs)
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…