Electric Guitar
Download
Report
Transcript Electric Guitar
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
1
OVERVIEW
•
•
•
•
•
•
•
Motivations & Objectives
Development Tools
Digital Audio Effects
Target Traditional Instrument Analysis
Model Explanations
Results & Discussions
Conclusion & Recommendations
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
2
MOTIVATIONS
• Difficulties in obtaining most of traditional
musical instruments
• Time consumption on learning new methods of
playing traditional instruments
• Limitations of notes produced on certain
traditional musical instruments
• Availabilities of western musical instruments
simulators
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
3
OBJECTIVE
• Develop a program that simulates a traditional
musical instrument (Kecapi) by using an easily
accessible instrument (Electric Guitar)
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
4
TOOLS - Guitar
• One of the most common music instrument
• String type which is suitable for string type
traditional ones
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
5
TOOLS - Kecapi
• Indonesian traditional music instrument
• Sound produced by the sound hole
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
6
Guitar vs Kecapi
Comparison on notes produced
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
7
TOOLS – Microphone
• Transducer – Air pressure to electrical signals
• Used in recording Kecapi sound
• Microphone are selected based on :
– Frequency response
– Frequency range
• Shure SM57 are selected due to its balance on
both specifications stated above as well as the
cost
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
8
TOOLS – Microphone (Comparison)
Common
House
Microphone
Shure SM62
Shure SM57
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
9
TOOLS - Simulink
• MATLAB add-on
• Graphical environment in developing simulations
• Based on flow of signal trough various type of blocks
Running simulation
Simulink
Blockset
Signal flow lines
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
10
TOOLS - Simulink
Tools used in developing the model
name.wav
130
Constant
-6900
z
To Wave
Device
DSP
1
Delay
-f
z
Out
Variable
Fractional Delay
SYED SYAHRIL
To Wave
File
FDATool
Gain
Sine Wave
Integer Delay1
In
Sum
Digital
Filter Design
From Wave File
speech_dft.wav
(22050Hz/1Ch/16b)
From Wave
File
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
11
TOOLS – Wavelab 5
Audio recording & editing software used in
editing recorded kecapi sound
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
12
DIGITAL AUDIO EFFECTS - Equalizer
• Equalization (EQ) is the process of boosting or
cutting certain frequency components of a signal.
• By applying some filters, audio signal of the
source will be equalized to a desired output
FDATool
Filter 1
1
In1
FDATool
1
Out1
Filter 2
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
13
DIGITAL AUDIO EFFECTS – Chorus 1
• Product of more than one source playing a same
sound in unison
• The imperfection of the combination causes
chorus effect
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
14
DIGITAL AUDIO EFFECTS – Chorus 2
Parameters in configuring a chorus effect :
• Sweep Depth
• Number of voices
• Delay
• Rate
Rate
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
15
DIGITAL AUDIO EFFECTS – Chorus 3
The number of voices is simply the number of
delayed signal added to the output
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
16
DIGITAL AUDIO EFFECTS - Reverberation
• Reverberation is the result of the many reflections of a
sound that occurs in a room
• Reflected sound is a minimally delayed signal of the
source
• Reverberation also occur in a sound box of an
instrument
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
17
MODELING PROCESS
Two main parts :
• Analyzing target instrument (Kecapi)
– Time domain
– Frequency domain
– Auditory
• Synthesizing the effect model (Simulink)
– Applying analysis results
– Configuring Simulink block parameters
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
18
TARGET INSTRUMENT ANALYSIS 1
Time domain analysis
Kecapi and electric guitar plot in time domain
1
SYED SYAHRIL
amplitude kecapi
0
-0.5
-1
0
0.1
0.2
0.3
0.4
0.5
0.6
seconds,time
0.7
0.8
0.9
1
0
0.1
0.2
0.3
0.4
0.5
0.6
seconds,time
0.7
0.8
0.9
1
0.8
0.6
amplitude guitar
•Envelope fluctuates in
kecapi
•Chorus effect are
suggested to occur
•Similar string notes
resonates each other
•Trough listening, the
‘watery’ sound normally
caused by a chorus
effect
0.5
0.4
0.2
0
-0.2
-0.4
-0.6
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
19
TARGET INSTRUMENT ANALYSIS 2
•Frequency domain
analysis
SYED SYAHRIL
100
dB (kecapi)
80
60
40
20
0
0
1000
2000
3000
4000
5000
frequency,Hz
6000
7000
8000
0
1000
2000
3000
4000
5000
frequency,Hz
6000
7000
8000
100
80
dB (guitar)
•Kecapi contains more
high frequency
components
•Fundamental frequency
of the note is lower in
amplitude in a guitar
•A combination of filters
is needed in order to
equalize the electric
guitar frequencies
Frequency Domain Plot
60
40
20
0
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
20
MAIN MODEL
• Simulation model developed based on analysis
• Human auditory system is most important tool in the overall design of
the model
• Main components : Equalizer, Chorus & Reverberation
• Additional gain used to increase the volume of the manipulated signals
From Wave File
sample.wav
In1 Out1
In1 Out1
In1 Out1
4
Gain2
From Wave
File
Equalizer
Subsystem
chorus
subsystem
Reverberation
Subsystem
To Wave
Device
FDATool
3
sample.wav
Gain1
Bypass Filter
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
To Wave
File
21
SUBSYSTEM – Equalizer 1
• Why ? To equalize the electric guitar frequency components to a
kecapi
• Where ? Earlier part of the model to replicate the source (strings)
• How ? A low-pass
and a high-pass
FDATool
filter
1
Gain1
Low Pass
1
1
Out1
FDATool
In1
3
Gain
High Pass
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
22
SUBSYSTEM – Equalizer 2
• Low-pass filter with a cut
off frequency of 2kHz
• Actually a band pass filter
with a band pass
frequency of 10Hz to
90Hz
• Not able to get a flat
response for these values
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
23
SUBSYSTEM – Bypass Filter
• How? - High-pass filter with cut off frequency of 2kHz
• Where ? - Certain frequency components of the signal will bypass
the chorus subsystem
• Why? - Higher frequency notes has slight chorus effect
• Thinner strings which produces high frequency sound has less
effects on thicker strings of the same note (resonance)
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
24
SUBSYSTEM – Chorus 1
• How? – three variably delayed signals (voice) with different delay
variables (chorus parameters)
• Where? – After filters equalized the signal
• Why? – Similar note strings
resonates each other
• Voice gain values determines
its volume
• Three voice chorus selected
since there is three similar
string notes excluding the
played string
1
.7
In1
Gain1
In
Delay
DSP
z
-f
Out
Variable
Fractional Delay
1
Gain
1
Out1
Sine Wave
130
In
Delay
DSP
z
-f
Out
Variable
Fractional Delay1
1
Gain2
Sine Wave1
130
In
Delay z
DSP
-f
Out
Variable
Fractional Delay2
.6
Gain3
Sine Wave2
130
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
25
SUBSYSTEM – Chorus 2
• Sine wave generator used as a Low
frequency oscillator (LFO)
• Every voice has different amplitudes
and frequency (Rate)
1
.7
In1
Gain1
In
Delay
DSP
z
-f
Out
Variable
Fractional Delay
1
Gain
1
Out1
Sine Wave
130
In
Delay
DSP
z
-f
Out
Variable
Fractional Delay1
1
Gain2
Sine Wave1
130
Rate
In
Delay z
DSP
-f
Out
Variable
Fractional Delay2
.6
Gain3
Sine Wave2
130
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
26
SUBSYSTEM - Reverberation
• How? – constantly delayed signal added to the original signal
• Where? – final part of the model
• Why? – Reflections of the sound wave in the sound hole of the
kecapi
• Number of voices are
are three due to the
same reason as chorus
.6
Feedback Gain
1
.7
.4
-7700
z
Delay Mix
In1
Delay Mix3
Integer Delay
1
Out1
.6
Feedback Gain1
z
-6900
Integer Delay1
.5
Delay Mix1
.5
Feedback Gain2
-7100
z
.5
Delay Mix2
Integer Delay2
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
27
RESULTS & DISCUSSIONS
• The system is able to fairly produce the desired
results
• Hearing the resultant audio sound is the best way
of concluding the results
• Frequency & time domain plot comparison also
referred as a benchmark for the results
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
28
COMPARISON – Time Domain
• Envelope fluctuations are visible but not as smooth as the original
kecapi sound
• Kecapi produces chorus and reverberation effects naturally (wood,
hollow body design). Where the system developed relies on digital
signal processing
• Enhance filters, chorus & reverb parameters.
• Use 24-bit in processing audio (high resolution, less quantization error)
0.8
0.6
0.8
0.6
0.4
0.6
0.4
0.2
0.2
0
0.4
0
amplitude
amplitude
amplitude
0.2
-0.2
0
-0.2
-0.4
-0.2
Guitar
-0.4
-0.6
0.1
0.2
0.3
SYED SYAHRIL
0.4
0.5
0.6
seconds,time
0.7
0.8
0.9
Model Output
-0.6
-0.8
0
-0.4
1
0
0.1
0.2
0.3
0.4
0.5
0.6
seconds,time
0.7
0.8
0.9
Kecapi
-0.6
1
-0.8
0
0.1
0.2
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
0.3
0.4
0.5
0.6
seconds,time
0.7
0.8
0.9
1
29
COMPARISON – Frequency Domain
100
Guitar
80
dB (kecapi)
70
60
50
40
30
20
10
0
0
1000
2000
3000
4000
frequency,Hz
5000
6000
7000
8000
100
90
Model Output
80
dB (guitar)
70
60
50
40
30
20
10
0
0
1000
2000
3000
4000
frequency,Hz
5000
6000
7000
8000
100
90
Kecapi
80
70
dB (guitar)
• Model output shows
significant gain in higher
frequencies of the guitar
signal
• Noise introduced in the
output
• The use of compressor in
recording a guitar signal
reduce the gain amount
needed in the higher
frequencies
90
60
50
40
30
20
10
0
SYED SYAHRIL
0
1000
2000
3000
4000
frequency,Hz
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
5000
6000
7000
8000
30
COMPARISON – Real Audio
• Compares the sound of 3 sources of sound;
electric guitar, kecapi as well as model output
• Sample of a similar single note by each source
• Sample of a short music produce by these
sources
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
31
CONCLUSIONS
• In conclusion, the objectives stated in this project
has been achieved by referring to the results
obtained
• The usage of effects included in the model gives a
good result but has plenty of room to improvise
mainly in terms of its parameters and tools used
• With this achievement, traditional music may be
easily produced and creatively expands a
traditional musical instrument usage
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
32
RECOMMENDATIONS
• Further develop a model to simulate other
traditional instruments especially string
instruments
• Compile as a stand alone program rather than
running it in Simulink
• Realize certain amount of traditional instruments
simulation onto a DSP board
• Improve tools quality to produce better results
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
33
SYED SYAHRIL
TRADITIONAL MUSICAL INSTRUMENT SIMULATOR FOR GUITAR
34