Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Audio Processing, Music Note Generation

Status
Not open for further replies.

tobby

Junior Member level 1
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!
 

javadakhlaghi

Newbie level 6
Newbie level 6
Joined
Dec 3, 2005
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,382
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top