Professional Documents
Culture Documents
of violin modes with the use of Fourier transform and f s t= ∑ f nT s t −nT s (2)
recorded chromatic scales. The method is based on the n=−∞
I. INTRODUCTION
F j = ∑ f nT s e− jnT s
(3)
n=−∞
Violin modes are the characteristic frequencies of The final form of formula (3), which was employed to
resonances of the instrument and they determine a calculate the spectrum of violin sound, is:
number of aspects of violin sound. The study of modes is
very important for violin makers, musicians and sound N −1 − j2 nf k
fs
engineers. At present the most popular is the analysis of F f k = ∑ f nT s e (4)
the pulse response of the violin body with the use of an n=0
II. THE SELECTION OF A KIND OF FOURIER TRANSFORM The energy spectrum of signal, which was calculated
with the following formula, was employed for the
FFT is a commonly used transform in the analysis of analysis of instrument sound:
signals. However, it has certain limitations, especially
with respect to frequency resolution, which is of E f k =∣F f k ∣
2
(5)
particular importance in the study described in this
article. The optimal resolution for this kind of studies is where:
0.1 Hz [3], which is difficult to obtain in FFT. Besides, it E( fk ) is the sample of energy spectrum.
is also crucial to be able to calculate a sample of a
spectrum for a prescribed frequency. Therefore, the In this work, the analysis of sampling energy spectrum
application of FFT is not very reliable when solving this was used to search for violin modes.
kind of problem.
This work makes use of the continuous Fourier III. THE CHOICE OF THE RECORDED VIOLIN SOUNDS
transform to calculate the spectra of the studied
instruments. Such a solution makes it possible to The main violin modes are present in the frequency
calculate the spectrum of violin sound with a required band ranging from 100 Hz to about 700 Hz. The most
precision and for the prescribed frequencies. Since the important ones were described as C1 (about 200Hz), A0
time factor here is of marginal importance, the (about 275 Hz), C2,T1,C3 (from 430 Hz to 500 Hz) and
information-based complexity of the continuous Fourier C4 (about 700 Hz). C1 has the smallest energy. The T1
transform is not critical. mode is known as the main wood resonance and has the
The following formula was employed in this work: highest energy [1,5]. Therefore, the choice of the
∞
recorded violin sounds must allow for this fact.
The recordings of sounds of instruments taking part in
F j =∫ f te− j t dt (1)
−∞
the 10th International Henryk Wieniawski Violin Making
where: Competition [7] were used to create a multimedia
ω is pulsation, f(t) is a signal in time domain, t is time. database AMATI[6]. All of them were made with a 44.1
kHz frequency sampling and a 16-bit resolution, both in
The sampling signal is expressed with the following the near field and the far field. The AMATI database
formula: contains recordings of whole strings, diatonic and
chromatic scales, pizzicati and one piece of Johann
190
double precision variables: frequency (freq) and and help_cos.
value (val). 6. Set variable n and variable k to 0.
11. Choose extrema in the vicinity of frequencies of 7. Calculate help_cos = cos(help_one[k]*n).
violin modes C1, A0, C2, T1 and C3. Fix the 8. Calculate help_sin = -sin(help_one[k]*n).
found extrema as violin modes. 9. Calculate spectrum[k].real = spectrum[k].real +
12. Write energy_g, energy_e, multi_g_e and the found rec_table[n] * help_cos.
extrema in the text file. 10. Calculate spectrum[k].imagine =
spectrum[k].imagine + rec_table[n] * help_sin.
VI. THE OPTIMISATION OF THE CALCULATION OF THE 11. Increase n by 1.
CONTINUOUS FOURIER TRANSFORM 12. If n is less than N, go to point 7.
13. If n is equal to N, increase k by 1 and calculate
The algorithm presented above, does not include the modulus, phase and energy of spectrum sample.
precise description of the calculation of the continuous 14. Increase k by 1.
Fourier transform. Although the time of waiting for the 15. If k is less than K, go to point 7.
work result of the violin modes searching programme is 16. If k is equal to K, end the calculating.
not critical, it was found that the number of arithmetic
operation could be reduced. Consequently, the application In this optimisation a number of arithmetic operations
for searching violin modes can work much faster. and access time for memory was reduced. The reduction
The resolution of this problem consists largely of the access time consists in the using simple variables to
preparation of tables with values for sinus and cosinus storing results of the most part of calculation.
arguments.
Formula (4) can be written as: VII. THE SEARCHING OF EXTREMA
[ ]
During searching for violin modes, only clear maxima
N −1
2 nf k 2 nf k
F f k = ∑ f nT s cos − j sin (9) are interesting. In energy spectrum are present different
n=0 fs fs kind of disturbances, especially noise. The method of
searching for extrema have to be little sensitive for noise.
The fk are prescribed frequency, which was calculated In another case, the big number of found extrema will not
in point 6 of the main algorithm. To calculate argument of be incorrect.
trigonometric functions, two operation of multiplication The presented below algorithm of searching of
and one of division must be made. The table of prepared maxima uses five samples to detect one maximum. This
arguments can create, because all of values of variables method works only for clear maximum in energy
are known. spectrum.
This method was used to optimisation of calculating
continuous Fourier transform. The input data for algorithm are:
1. the table spectrum with the same structure as in the
The input data for algorithm are: continuous Fourier transform algorithm,
1. the number of spectrum samples: K, 2. the number of spectrum samples: K.
2. the table of sample of recording: rec_table,
3. the tables of frequencies: freq_t, The output data for algorithm are:
4. the sampling frequency: fs, 1. the number of maxima: M,
5. the number of samples of recording. 2. the table freq_max with found maxima. Elements
of this table are double precision variable.
The output data for algorithm are:
1. the table spectrum having elements with following The method:
structure: 1. Create a new boolean table maxima with K
- frequency (freq), elements.
- real part of spectrum sample (real), 2. Set all elements of maxima to false.
- imagine part of spectrum sample (imagine), 3. Set variable i to 0.
- modulus of spectrum sample (modulus), 4. Set M to 0.
- phase of spectrum sample (phase), 5. If spectrum[i].energy < spectrum[i+1].energy and
- energy of spectrum sample (energy). spectrum[i+1].energy < spectrum[i+2].energy and
spectrum[i+2].energy > spectrum[i+3].energy and
The method: spectrum[i+3].energy > spectrum[i+4], set
1. Create K-elements output table spectrum. maxima[i+2] to true and increase M by 1.
2. Copy frequencies from table freq_t into table 6. Increase i by 1.
spectrum. 7. If i is less than K – 5, go to point 5.
3. Create K-elements table help_one with double 8. If the number of found maxima is greater than 0,
precision elements. create freq_max table with M elements. In other
4. Calculate value of formula 2πfk/fs for each case go to the point 10.
frequency from freq_t table and store results into 9. Copy a fonded frequency to freq_table.
help_one. 10. End the searching.
5. Create two double precision variables: help_sin
191
This method of searching works correctly to 0.5 Hz of TABLE I
resolution in frequency domain. When the step of THE FREQUENCIES OF MODES OF VIOLINS FROM AMATI DATABASE
CALCULATED WITH USING THE ALGORITHM DESCRIBED IN THIS ARTICLE.
frequency is greater than 0.5 Hz, the algorithm omits a
part of violin modes. Signatu- Frequency of
re of
VIII. THE RESULTS OF CALCULATION violins C1 [Hz] A0 [Hz] C2 [Hz] T1 [Hz] C3 [Hz]
The algorithm for searching violin modes was 10 197 267 417 420 447
implemented in c++ language with using Qt library for 15 198 281 397 420 450
user interface. The program was compiled by gcc and 17 198 282 399 427 499
tested on Linux platform openSuSE 10.2.
The calculation was made for the all violins from 18 199 284 398 423 503
AMATI database. The initial frequency was 102 Hz, the 20 198 266 399 435 507
final frequency was 600 Hz. The frequency resolution
21 199 265 398 425 450
was 0.5 Hz. Only recordings of sound from the near field
was analysed. 23 198 265 396 418 476
The found modes were very similar to these was 24 198 282 395 418 475
presented in literature [1,2,4,5], but some violins from
AMATI database have artefacts in comparison with the 30 198 264 397 420 452
results of the researches [1,2,4,5]. 31 197 280 417 440 472
Since the extrema are better visible in the linear scale,
32 197 281 418 424 472
it was used to the graphic presentation of multiplied
energy spectra. 33 197 282 421 440 451
In Fig. 1 exemplary solution obtained by the algorithm 35 198 279 396 420 474
described in this paper is given. This is the product of
multiplication normalized energy spectra for the 36 198 265 397 423 496
recordings chromatic scales on g string and e'' string for 37 197 280 390 435 482
violin fixed by number 85. The found modes are:
39 197 278 388 416 464
C1 = 197 Hz, A0 = 278.5 Hz, C2 = 420 Hz,
T1 = 422 Hz, C3 = 468 Hz. 40 198 280 416 423 449
41 197 280 419 441 469
Some violins have artefacts with the A0 mode. Two
maxima are observed instead of one maximum. In Fig.1 43 197 285 419 425 447
two extrema in band from 250 Hz to 300 Hz are present.
The interpretation of this effect is following: a violin In Table I the exemplary results of searching are given.
maker decides, where the A0 mode will be present, but he The modes was searched with 1 Hz frequency resolution
must tune the belly and back to the same frequency of A0 in band from 100 Hz to 600 Hz.
mode [1,2,4,5]. The making of this consists in suitable
sculpturing of the belly and back. This is very difficult IX. THE COMPARING RESULTS FROM NEW METHOD OF
and precision task, because the small mistake takes effect SEARCHING FOR VIOLIN MODES WITH RESULTS
a change of modes frequencies. DESCRIBING IN LITERATURE
Fig. 1. The product of multiplication of normalized energy spectra of Fig. 2. The result of analysis of pulse response of violin body by
chromatic scales for violin with number 85 accelerometer [1]
192
Fig. 2 presents the exemplary result of analysis the [10] P. Wrzeciono, The Mathematical Method of describing properties
pulse response of violin body [1]. The frequencies of of sound of musical instrument, 53th Open Seminar on Acoustics,
OSA 2006, Zakopane, Poland
modes are fixed in this diagram. The C1 mode is near 200
Hz, the A0 mode is near 300 Hz, the C2,T1 and C3
modes are between 400 Hz and 500 Hz. The found modes
in the violin sound are very similar to example from book
[1]. However, in the results of new method, more extrema
was observed.
There are a lot of reasons of this situation. The first is
the sound wave propagation in different media [1]. The
traditional methods measure the vibrations of violin body,
not a sound wave in the air. The sound of instrument
depends on vibrations, but it is not the simple
dependence. Consequently, the spectrum of sound differs
from the spectrum of violin body vibrations. In many
cases, the dependence is linear.
Additional, in the last acoustic researches, a lot of
nonlinear effects was observed [8]. There are also in the
musical instruments, especially in the string instruments.
In the results of this work, probably the both kinds of
effects can observe, because the proportions between the
modes are changed and the extra maxima are present in
the energy spectra of violin sound.
X. CONCLUSION
REFERENCES
[1] Y. Andou, A acoustics of musical instruments, Ongaku-no Tomosha,
Japan, Tokyo 2000 (japanese)
[2] H. Dünwald, An introduction to the objective tuning of sound
quality of violins (german), Acustica (Acta Acustica) vol. 58, pp.
163-169, 1958
[3] D.E. Hall, Musical Acoustics – An Introduction, Wadsworth
Publishing Company, USA, 1998
[4] C.M. Hutchins, A 30-year experiment in the acoustical and musical
development of violin-family instruments, Journal of the Acoustical
Society of America, vol. 92, pp 639-650, 1992
[5] E. Jansson, Acoustics for violin and guitar makers, 2002
www . speech . kth . se / music / acviguit4 /
[6] E. Łukasik, AMATI - the multimedia database of violin sounds
(polish), Multimedia i Sieciowe Systemy Informatyczne, MiSSI
2002, Wrocław, Poland
[7] E. Łukasik, P. Wrzeciono, The digital registration of instrument
sounds for the research of theirs tone (polish), Raport Instytutu
Informatyki RB-03/2001, Politechnika Poznańska, Poznań 2001,
Poland
[8] E. Weyna, A propagation of energy of real acoustic sources,
(polish), Wydawnictwa Naukowo-Techniczne, Warszawa 2005,
Poland
[9] P. Wrzeciono, Statistical and perceptual analysis of the violin tone,
52th Open Seminar on Acoustics, OSA 2005, Wągrowiec, Poland
193