Professional Documents
Culture Documents
Generation of Shepard Tone Tutorial
Generation of Shepard Tone Tutorial
MATLAB
By:
Introduction
• A Shepard tone, named after Roger
Shepard, is a sound consisting of
a superposition of sine waves separated
by octaves.
• When played with the bass pitch of the
tone moving upward or downward, it is
referred to as the Shepard scale.
• This creates the auditory illusion of a tone
that seems to continually ascend or
descend in pitch, yet which ultimately gets
no higher or lower.
Algorithm
• We know that it’s the combination of sines
and cosines of different frequencies.
• And our requirement is to create a sound
whose pitch moves upwards or downwards.
• Our design code will give freedom to
choose the sampling frequency and the
number of harmonics of the tone.
Procedure (1/3):
Step 1:
• To find the maximum frequency range and No of samples
• And when
Procedure (3/3):
Step 3:
• We need to give the users a choice
whether they want an ascending pitch or
descending pitch. For this, we will set an
input parameter and will use the flip
command.
• Now we need to set the envelope level,
plot settings and soundplay settings using
the multiple functions.