Next  |  Prev  |  Top  |  REALSIMPLE Top

Record a Note From Your Guitar

Record a note on your guitar. Figure 1 shows what your note might look like when plotted in the time domain (highest open note on an acoustic steel-string manouche guitar).
Figure 1: Original signal in the time domain.
\resizebox{4.3in}{!}{\includegraphics{\figdir /06-05-22-01-orig-signal-time-domain.eps}}

The following code segments shows basic usage of reading a file into Matlab and plotting the data to obtain the results in Figure 1.

fileName = 'hard_long_1_16b.wav';

%% fs is the sampling rate of the recording
%% here we have fs = 44100
title('original signal in time domain');

Next  |  Prev  |  Top  |  REALSIMPLE Top

Download vguitar.pdf

``REALSIMPLE Basic Virtual Acoustic Guitar Lab'', by Nelson Lee and Julius O. Smith III,
REALSIMPLE Project — work supported by the Wallenberg Global Learning Network .
Copyright © 2008-06-05, by Nelson Lee and Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University