Re: Guitar Effects Design
If you have matlab try something like this.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function musc_note()
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Make a Musical tone. %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
tl=input('Enter length of tone (sec) ')
Fs=input('Enter the sample rate. (Max=1e5) ')
Tone=input('Enter the note. 50-18000 (in Hz) ')
t=0: (1/Fs) :tl; % 10 Seconds (time)
y=sin((Tone*t*(2*pi))); % sin is in rad's
sound(y,Fs);
plot(t,y)
yy=y.*(sin(Tone*.3*t*(2*pi)).^2);
display('Press sp-bar to hear w/Mod. ')
pause;
sound(yy,Fs);
plot(t,yy)
% display('Press sp-bar to hear in stereo. ')
% pause;
% z=cos((Tone*t*(2*pi))); % sin is in rad's
% stro=[y',z'];
% sound(stro,Fs);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
The file above is to generate a sound, but most of the code will be a good
reference and starting point.
You can also type (in the Matlab Command line)
help wavplay
help wavread
You will have to find out how the PC's sound card and Matlab will stream the input
"line in" input (Or if it is capable of doing this?). If you do go this route you might
want to search here.
www.mathworks.com/support/
look in the " File Exchange" and "Index of MATLAB Examples" tabs.
Hope this helps.
Cliff Jams!