Вы находитесь на странице: 1из 6

Guitar Additive Sinthesys

Harmonic and Inharmonic Analysis

Carlos Eduardo Romero Javier Fernández Retortillo


University of Extremadura University of Extremadura
Polytechenic School Polytechenic School
Cáceres, Spain Cáceres, España
Carlos_r93@hotmail.es Javi_992@hotmail.com

Abstract-This report corresponds to the first evaluable


practice of the class Digital Audio, in this practice we have A. Head
simulated additive digital synthesis of a guitar using Matlab The headstock is located at the end of the guitar neck
software, also it has been studied the harmonic and inharmonic farthest from the body. It is fitted with machine heads that
behavior of this instrument. adjust the tension of the strings, which in turn affects the pitch.
Keywords— FFT; Harmonic; Inharmonic; Partials; Octave; B. Body
additive; Sinthesys; Sound; Guitar.
In acoustic guitars, string vibration is transmitted through
the bridge and saddle to the body via sound board. The sound
I. INTRODUCTION board is typically made of tone woods such as spruce or cedar.
First of all we have selected the range of the notes to be Timbers for tone woods are chosen for both strength and
produced with our Matlab program, the note of La in the ability to transfer mechanical energy from the strings to the air
fourth octave was selected as reference, the program will be within the guitar body. Sound is further shaped by the
able to play sounds in a range of three octaves except for the characteristics of the guitar body's resonant cavity.
Mi note that will be play in fourth octaves, this means a total
of 37 different sounds will be synthesized, it has been set three C. Neck
different sound duration: one second, half of second, and
A guitar's frets, fretboard, tuners, headstock, and truss rod,
quarter of a second, also the reader will find in this report how
all attached to a long wooden extension, collectively constitute
we extracted the information of the guitar´s partials.
its neck, is important to the guitar's ability to hold a constant
pitch during tuning or when strings are fretted. The rigidity of
II. PHYSICAL ASPECTCS OF THE GUITAR the neck with respect to the body of the guitar is one
[1] The guitar is a musical instrument classified as a string determinant of a good instrument versus a poor one.
instrument with anywhere from four to 18 strings, usually
having six. The sound is projected either acoustically, using a D. Chords
hollow wooden or plastic and wood box (for an acoustic The enumeration of guitar chords are made from top to
guitar), it is typically played by strumming or plucking the bottom according to the most low pitched to the most high
strings with the fingers, thumb and/or fingernails of the right pitched sound. The fourth, fifth and sixth being the chord the
hand or with a pick while fretting (or pressing against produces the most low pitched sound.
the frets) the strings with the fingers of the left hand. The
guitar is a type of chordophone.
 First guitar string corresponds to Mi note.
 Second guitar string corresponds to Si note.
 Third guitar string corresponds to Sol note.
 Fourth guitar string corresponds to Re note.
 Fifth guitar string corresponds to La note.
 Sixth guitar string corresponds to Mi note.

Fig 1. Parts of a Guitar

1
III. HARMONICS AND INHARMONICS
[2]Harmonics are an important part of every note, every
time that a guitar chord is play it starts to vibrate according to A. Mathematical Analysis of Inharmonics
a complicate pattern and the sound that produces it is Guitar´s Inharmonicity main variables are: length of the
compound of many elements, fundamental frequency is the scale, tunning and chord´s caliber, [5] when relating the
main and louder component of the sound and the one that inharmonicity to the actual frequency of the stretched
stands out, and also is the one which the tonality of the note is fundamental f1 rather than to the frequency of the ideal string,
identify. Also fundamental frequency can be define as the fn is given approximately by.
sound produced when the chord vibrates in only one
wavelength.

As we can observe in Fig 2. The chord produces a series of It is sometimes convenient to express the deviation of the
harmonics o partials that are multiples of the fundamental partial frequencies from a harmonic series by numbers of cents
frequency, and they are produced because the chord vibrates (100 cents= 1 semitone). The inharmonicity In, which
in the same time at short- wavelengths. expresses the ratio fn/(n*f1), is given by:

Where b = 866B is the inharmonicity coefficient in cents.


In these lines we can see that inharmonicity for a specific
harmonic ( In where n is the harmonic number) is directly
proportional to B where B is the inharmonicity coefficient. As
we see making the corresponding simplifications it leads to the
conclusion that inharmonicity is approximately equal to bn^2.

Another approximation for inharmonics was realized for


the professor Jim B. of the Illinois at Urbana i-champaign
University, where making all the assumptions and
Fig 2. Harmonics of a Fundamental Frequency simplifications it leads to the following equation:

Where,
[3] Inharmonicity is a phenomenon that has place in the
musical instrument, this effect produces the deviation of the
frequencies of the different partial sounds according each one
of them and also depending the fundamental frequency. For
example, an inharmonicity is produced when the second
harmonic of La with 440 Hz of fundamental frequency instead r is string radius, E is Young`s modulus, T is tension and L is
of having a frequency of 880 Hz has a frequency of 880.4 Hz. string length.
As we see, it is set that inharmonicity (f[n]) is directly
proportional to A, also A is directly proportional to r and
[4] In other words inharmonicity is the deviation in the
inversely proportional to T and L. where r is the radius , T is
frequency of the harmonics of a chord respecting its expected
tension and L is length. Say in other words, bigger the
theoretical values, that is produced because the stiffness of the
thickness bigger the inharmonicity and bigger the tension or
chord, and this stiffness makes harmonics don’t swing in their
bigger the length lower the inharmonicity.
exact nodes but one that are a little deviated. Inside the same
chord, the deviation mentioned above no necessary appears in
continues way, that means some harmonics ( they are called
partials when they are deviated of their theoretical values) are We are interested that our guitar has the thinnest chord and
deviated in positive way and others in negative way; in string the biggest tension possible. Obviously there are physics
instruments, inharmonicity is directly related with the limits for our hands, also using big scales and calibers will
thickness, stiffness and length of the chord. convert our guitar in a bass.

2
IV. SOUND SYNTHESIS
TABLE I. OCTAVE INDEX ACCORDING THE REFERENCE OF LA4
Sound synthesis is the main objective of this practice, and
consists in to be able to produce artificial sounds for non -
acoustical ways that approximate to the original ones. Oct 3 Oct 4 Oct 5 Oct 6
Do -9 3 15
Do# -8 4 16
Re -7 5 17
Re# -6 6 18
Mi -17 -5 7 19
Fa -16 -4 8
Fa# -15 -3 9
Sol -14 -2 10
Sol# -13 -1 11
La -12 0 12
La# -11 1 13
Si -10 2 14

Also in Table I we can see that we have take as reference


note La in the fourth octave that corresponds to a frequency of
Fig 3. Additve Sinthesys Scheme. 440 Hz. Each index of the table corresponds to the frequency
position respect to the reference note La4.
In the Fig 3 we can observe the scheme of the kind of
(5)
synthesis used in this practice, in our case we implemented
additive synthesis that is an digital synthesis (it means we
synthesized sounds programming a computer) and consists in
Equation (5) presents the relation of the frequency of any
the overlap of different kind of waves with different
note to the reference note. For example using n=-2 and
amplitudes and this allow us to reproduce the sound of
Fref=440 we have the corresponding frequency to Sol in the
interest.
fourth octave.
Applying this technique to the guitar´s note generation we
can see in Fig 3 that for reproduce the sound of each note we B. Guitar´s Spectral Information
need mainly two parameters: As detailed above to be able to reproduce adequately the
guitar´s sound we need spectral information of each one of the
 The different frequencies of the partials used per 37 notes that will be synthesized. To be able to obtain this
note. information of the partials we used real guitar samples
 The different amplitudes of these partials. obtained through an audio edition software. These samples
were not taken for us because we do not have neither a guitar
nor a MIDI port, but in [6] it is detailed where these samples
were took.
A. Guitar´s Range of Notes
We decided to do it in this way because is a more precise
In this section we present the range of octaves that our way to assing these values to the different amplitudes of each
Matlab program is able to reproduce. Musical register of a partial, so in this way we have different spectral information
guitar only achieves three octaves. The frequency range for each one of the 37 sounds that will be recreated. The other
produce for the vibration of the guitar´s chords goes from Mi3 option was to suppose that every note had the same behavior
to Mi6. in all the three octaves but this is not true, in the used samples
As we can see in Table I all notes has a range of three we can observe that different octave for the same note leads to
octaves except Mi note, in which we have decided to include different partials amplitude.
Mi6 because is a sound that the guitar is able to achieve, so
our program will be prepared to synthetized 37 different
sounds.

3
We decided to use the fundamental frequency and fourteen Equation (7) it is the nyquist theorem and it says that our
partials for each note, so in this way we have an array of sampling frequency has to be at least two times the highest
fifteen position for each one of the 37 notes. frequency that our program will generate; our highest
frequency corresponds to Mi6 that is calculated with n=19
This array that has the spectrum amplitudes has the form and corresponds to a frequency of 1318.5 Hz, so our sampling
of : frequency has to be at least 2637 Hz.

[0.5f f 1.5f 2f 2.5f 3f 3.5f 4f 4.5f 5f 5.5f 6f 6.5f 7f 7.5f] Because of that we decided to use a sampling frequency of
8000 Hz cause is necessary work with a standard frequency
and 8000 Hz is the closest to the ours.

 D. Surrounding
[8] Surrounding is the name of the time development of a
In the equation (6) we have the relation between the specific sound and it is compound of:
fundamental frequency and the fourteen used partials. [7] in
low pitched sound notes there will be empty positions of the  Attack: is the time between the starts of the sound
array because it will have a reduced number of harmonics but and the time the it takes to achieve the maximum
in high pitched sound notes there will be even more that amplitude, attack is denominated as transition
fifteen harmonics, so for this reason we it is decided that the because it has very short time duration.
array has a sufficient number of position to be able to simulate
the sound in an more accurate way.  Decay: is the time that it takes to reduce the
amplitude from the maximum value to the sustain
Table II shows the spectral information used in our sixth
value.
octave synthesis.

TABLE II. SIXTH OCTAVE PARTIAL AMPLITUDES  Sustain: in this time the sound keeps constant until it
stops to introduce vibration in the instrument.
Do6 Do#6 Re6 Re#6 Mi6
f/2 0.0121 0.0085 0.0116 0.0190 0.0095  Release: is the time that it takes to the sound in
f 0.0140 0.0074 0.0121 0.0016 0.0042 reduce its amplitude until it can not be heard
anymore, after the vibration has stop.
3f/2 0.0016 0.0007 0.0004 0.0037 0.0059
2f 0.0088 0.0008 0.0182 0.0051 0.0088
5f/2 0.0072 0.0012 0.0020 0.0017 0.0008 Surrounding is a very important characteristic of the
3f 0.0004 0.0006 0.0022 0.0002 0.0012 sound because with the harmonics conforms the timbre of the
7f/2 0.0002 0.0006 0.0007 0.0034 0.0053 sound that allow to differentiate one sound of others.
4f 0.0011 0.0002 0.0014 0.0038 0.0021
In other words surrounding allow us for example
9f/2 0.0019 0.0025 0.0013 0.0008 0.0008 differentiate a piano from a guitar or human voice from a
5f 0.0021 0.0016 0.0030 0.0027 0.0002 trombone.
11f/2 0.0011 0.0004 0.0013 0.0009 0.0004
6f 0.0009 0.0018 0.0025 0.0003 0.0005 In our synthesis we have decided to use an exponential
surrounding for each note generated, we decided this because
13f/2 0.0006 0.0004 0.0036 0.0001 0.0003
we thought that it was a good compromise between the
7f 0.0004 0 0.0007 0.0001 0.0001 accurate timbre achieves and the complexity of our
15f/2 0.0004 0.0001 0.0002 0.0002 0.0001 programming code.

C. Sampling Frequency Used

Once we have explained the spectral analysis that we used


for our program, now we have to specify an adequate
sampling frequency, this frequency will be necessary for
sound synthesis.

4
As we can observe in equation (8) this surrounding has a
decay slope given for the maximum sample of the synthesized
note Fig.4 shows an example of this surrounding for a one
second note duration.

Fig 6. FFT of Sol3 Generated with Additve Synthesis (red) and FFT of Sol3
Generated with an Online Synthesizer (blue).

V. CONCLUSIONS
When we executed our program we were able to hear that
Fig 4. Exponential Surrouding with one Second of Duration before surrounding was added to the note, this generate note
sounds like a pure and constant tone, but when we applied the
exponential surrounding to the note it can be perceive a better
accurate with the real sound timbre. But despite of that we do
not achieve to reproduce the characteristic sound of a guitar,
E. Spectrum Comparison this is because in additive synthesis is very important to use
Fig 5 shows the spectrum of Sol in the third octave, we different surroundings that will handle the different partial
obtained the expected results, it can be seen how the highest amplitudes.
delta corresponds to the fundamental frequency and it is
according to the theoretical expected value of 196 Hz.
REFERENCES

[1] wikipedia: https://en.wikipedia.org/wiki/Guitar.

[2] http://www.guitarmonia.es/teoria-musical/armonico/
[3] https://guitarbend.com/132-lutheria-fisica-de-
guitarra/719-teoria-de-cuerdas-1-inarmonicidad-longitud-
de-escala-calibre-de-cuerdas-por-que-es-mejor-una-
guitarra-multi-escala.html.
[4] https://es.wikipedia.org/wiki/Inarmon%C3%ADa
[5] https://guitarbend.com/132-lutheria-fisica-de-
guitarra/796-teoria-de-cuerdas-2-inarmonicidad-longitud-
de-escala-calibre-de-cuerdas-por-que-es-mejor-una-
guitarra-multi-escala.html.
[6] Francisco José Molina García. (2010). Desarrollo de una
Fig 5. FFT of Sol3 Generated with Additve Synthesis
aplicación de secuenciado MIDI en MatLab. 1/10/2016,
de Universidad de Valencia Sitio web:
https://riunet.upv.es/bitstream/handle/10251/9525/memori
a.pdf
[7] Francisco José Molina García. (2010). Desarrollo de una
Also in Fig 6 it can be observed a comparative between aplicación de secuenciado MIDI en MatLab. 1/10/2016,
Sol in the third octave FFT synthesized for our additive de Universidad de Valencia Sitio web:
https://riunet.upv.es/bitstream/handle/10251/9525/memori
synthesis Matlab program and Sol in the third octave a.pdf
synthesized for an online synthesizer that we found in [9]. [8] http://blog.7notasestudio.com/guia-compresion-ataque-y-
release/
[9] http://www.freeecardgreeting.net/home/acoustic_guitar_o
nline_spanish.php

5
6

Вам также может понравиться