from
Digital Guitar Tuner
by Farhat Masood This program plays the fundamental guitar strings sounds so that one could tune the respective guita
tune.m
% Plays A440 and then plays the
% guitar notes E A D G B E in order.
% Change the "dur" variable to make
% the notes change faster or slower.
fs = 11025;
dur = 2;
A440 = note(49,dur);
E = note(32,dur);
A = note(37,dur);
D = note(42,dur);
G = note(47,dur);
B = note(51,dur);
E2= note(56,dur);
S = [A440 E A D G B E2]/2;
sound (S , fs);