Anton Mark Z. Casia1, Russel Miles Diaz Ng2, Franzel John Y. Lawas3, Jose Leander R. Velasquez4
Department of Electrical and Electronics Engineering
University of San Carlos
Talamban, Cebu City, Philippines
1
strikefrdm23@gmail.com, 2russdiazng@gmail.com, 3leznarf13@gmail.com, 4bazingaleander@gmail.com
I. INTRODUCTION
Music has been a part of humanity ever since the beginning
of time. Some already view music as a necessity to their day to
day life. Many have wondered what the definition of sound is.
What is sound? What is music? Sound is defined to be the
vibration that travels through a medium, most commonly the
air, produced by regular and continuous vibrations that can be
heard by humans and animals alike. There are many
importance of sound to human life. Sound is the main form of
communication for humans and animals alike with the use of
various speeches where both parties can both understand and
comprehend.
Sound also covers a very wide scope of subjects or areas in
the field of science and technology. The study of sound is
known to be acoustics. Acoustics a branch of physics that deals
with the study of sound waves, its properties and the influence
it brought in our daily lives. Many technological breakthroughs
that have been proved beneficial to mankind are achieved in
the field of acoustics. Depth measurement with the use of
sound waves is presented by SONAR (Sound Navigation and
Ranging) technology. Some important examples are
chromatography, sterilization by the use of ultrasound, and
enhancing cell growth by the process of sonication.
Sound waves are discovered to be of varying frequency.
Frequency is defined to be the number of occurrences of a
repeating event per unit time. It is also said to be the reciprocal
of the unit period which is the duration of time in one cycle or
also known as the interval between beats. In short, frequency is
the amount of repeating vibrations in an object. Since the voice
of an individual person varies in frequency, it is classified into
how high the pitch or a high frequency note.
Duration (s)
Quarter
Note
0.25
Half Note
Whole Note
0.5
the last and the tricky part: combining the two .wav files.
This process needed the concept of modulation to avoid sound
distortion. Down below shows how the two waves are
combined and how the modulated and combined sounds was
achieved, and played.
B. Spectrogram
The sounds and music we hear are just waves and signals
oscillating and vibrating at different frequencies. Being only
identified by our sense of hearing, it can also be visually
represented as a spectrum of varying frequencies over a period
of time. This representation is called a Spectrogram. A sample
spectrogram is shown in Figure F5 where the frequencies of
notes C4 to C5 are displayed over a period of 10 seconds. The
colours of the vertical axis represent the frequency and the
most prominent acoustic spike at a given time [R1].
Spectrogram is implemented in Matlab in the form of the
specgram function. This function works by doing a ShortTime Fourier Transform on a given signal and the frequency
magnitude is shown in the vertical axis. It is called by running
the command: specgram(y,overlapSamp,Fs); where y is the
signal vector, overlapSamp is the number of samples that each
segment overlaps, and Fs is the sampling frequency. A sample
spectrogram of our song is shown in Figure F6 where it is also
overlaid with the notes that it represents.
600
550
500
Frequency
450
400
Note Range
Frequency
Range
250
5
Time
Tenor
C3 C5
130.8 523.3
Bass
E2 E4
82.41 329.6
With this table, if the initial notes used in the music sheet
do not qualify within the range, the unqualified notes should be
changed in a way that the note will transcend to a higher octave
or the note will descend in a lower octave. But the initial music
sheet that we had was already qualified for voice types alto
and tenor. So to solve the problem concerning the bass note file
and chord file. The unqualified notes were decreased by a
decrement of one octave. With this process, all the notes are
now qualified within the bass range. Lastly, concerning the
soprano, all the unqualified notes were increased with an
increment of one octave. Then four .wav files were created: the
soprano .wav file, the alto .wav file, the tenor .wav file, and the
alto .wav file.
300
Alto
F3 F5
174.6 698.5
Table T3. Note and Frequency Range Table for Different Voice Types
350
200
Soprano
C4 C6
261.6 1047
10
ACKNOWLEDGMENT
The authors would like to thank God for the wisdom,
knowledge He has given us and for the opportunity to learn
more. We would like to thank our colleagues family for
letting us stay for a night or two as we accomplish this
project. We would like to thank this learning institution for
providing us the opportunity to showcase our skills and
talents in this field. Lastly, we would like to thank our
parents for supporting us in this project.
REFERENCES
[1]http://www.cslu.ogi.edu/tutordemos/SpectrogramReading/spectrogram.h
tml
[2]http://www.thestudysite.com/importance-of-sound
[3] http://donrathjr.com/frequency-table/
CONCLUSION
To wrap this all up, MATLAB can really be used as a
great accompaniment in music but way harder to manipulate
than the usual musical instruments. Accomplishing this
project will not only require programming skills, but also
singing skills and skills concerning the technicalities of
music. We were able to successfully read notes from our
chosen music score sheet and convert the notes to their
corresponding frequencies. All these data are placed on a
Matlab data file and we created the code to read and combine
it to create the music accompaniment. Our voices were also
recorded using Matlab and was combined with the
accompaniment to finish up our medley. A music video was
then made in relation to the song therefore completing the
Christmas carol to the tunes of Jingle Bells and Feliz
Navidad respectively. The entire project was very
educational yet challenging. It has put the students
potentials to the test and had their brains and knowledge
tested on a whole new different academic and technical level.
Therefore, it is safe to conclude that this project has brought
the students substantial amount of experience and knowledge